|
2 | 2 |
|
3 | 3 | block_cipher = None
|
4 | 4 |
|
5 |
| -# Integrate astropy as data directory instead of module: |
6 |
| -import astropy |
7 |
| -astropy_path, = astropy.__path__ |
| 5 | +from pathlib import Path |
| 6 | + |
| 7 | +p_dir = Path(os.getenv('CONDA_PREFIX', 'C:\Python39')) |
| 8 | +s_dir = Path('D:\\SW-Development\\Python\\PlanetarySystemStacker') |
| 9 | + |
| 10 | +print(s_dir,s_dir / 'planetary_system_stacker\Binaries\Api-ms-win-core-xstate-l2-1-0.dll') |
8 | 11 |
|
9 | 12 | a = Analysis(['planetary_system_stacker.py'],
|
10 |
| - pathex=['D:\\SW-Development\\Python\\PlanetarySystemStacker\\planetary_system_stacker'], |
11 |
| - binaries=[('C:\Python39\Lib\site-packages\cv2\opencv_videoio_ffmpeg454_64.dll', '.'), |
12 |
| - ('D:\SW-Development\Python\PlanetarySystemStacker\planetary_system_stacker\Binaries\Api-ms-win-core-xstate-l2-1-0.dll', '.'), |
13 |
| - ('D:\SW-Development\Python\PlanetarySystemStacker\planetary_system_stacker\Binaries\Api-ms-win-crt-private-l1-1-0.dll', '.'), |
| 13 | + pathex=[s_dir / 'planetary_system_stacker'], |
| 14 | + binaries=[ |
| 15 | + (s_dir / 'planetary_system_stacker\Binaries\Api-ms-win-core-xstate-l2-1-0.dll', '.'), |
| 16 | + (s_dir / 'planetary_system_stacker\Binaries\Api-ms-win-crt-private-l1-1-0.dll', '.'), |
14 | 17 | ('C:\Windows\System32\downlevel\API-MS-Win-Eventing-Provider-L1-1-0.dll', '.'),
|
15 |
| - ('D:\SW-Development\Python\PlanetarySystemStacker\planetary_system_stacker\Binaries\\api-ms-win-downlevel-shlwapi-l1-1-0.dll', '.')], |
16 |
| - datas=[( 'D:\\SW-Development\\Python\\PlanetarySystemStacker\\Documentation\\Icon\\PSS-Icon-64.ico', '.' ), |
17 |
| - ( 'D:\\SW-Development\\Python\\PlanetarySystemStacker\\Documentation\\Icon\\PSS-Icon-64.png', '.' ), |
18 |
| - (astropy_path, 'astropy')], |
19 |
| - hiddenimports=['pywt._extensions._cwt', 'scipy._lib.messagestream', 'shelve', 'csv', 'pkg_resources.py2_warn'], |
20 |
| - hookspath=[], |
| 18 | + (s_dir / 'planetary_system_stacker\Binaries\\api-ms-win-downlevel-shlwapi-l1-1-0.dll', '.')], |
| 19 | + datas=[(s_dir / 'Documentation\\Icon\\PSS-Icon-64.ico', '.' ), |
| 20 | + (s_dir / 'Documentation\\Icon\\PSS-Icon-64.png', '.' ), |
| 21 | + ], |
| 22 | + hiddenimports=['pywt._extensions._cwt', #'scipy._lib.messagestream', 'shelve', 'csv', 'pkg_resources.py2_warn' |
| 23 | + ], |
| 24 | + hookspath=[s_dir / 'planetary_system_stacker\Pyinstaller_hooks'], |
21 | 25 | runtime_hooks=[],
|
22 |
| - excludes=['astropy'], |
| 26 | + excludes=[ |
| 27 | + ], |
23 | 28 | win_no_prefer_redirects=False,
|
24 | 29 | win_private_assemblies=False,
|
25 | 30 | cipher=block_cipher,
|
|
0 commit comments