mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix path to remove shared libraries when packaging the Windows app
This commit is contained in:
parent
7fe3e844d2
commit
450f6441e2
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@ torch_lib_paths = {
|
|||
}
|
||||
a.datas = [entry for entry in a.datas if not entry[0] in torch_lib_paths]
|
||||
|
||||
a.datas = [entry for entry in a.datas if not 'torch/_C.cp' in entry[0]]
|
||||
a.datas = [entry for entry in a.datas if not 'torch/_dl.cp' in entry[0]]
|
||||
os_path_separator = '\\' if system() == 'Windows' else '/'
|
||||
a.datas = [entry for entry in a.datas if not f'torch{os_path_separator}_C.cp' in entry[0]]
|
||||
a.datas = [entry for entry in a.datas if not f'torch{os_path_separator}_dl.cp' in entry[0]]
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||
|
||||
|
|
Loading…
Reference in a new issue