# -*- mode: python ; coding: utf-8 -*- import sys from shutil import copy import os cwdpath = os.getcwd() toolDir = os.path.join(cwdpath, 'tool') if os.path.exists(toolDir): os.remove(toolDir) os.mkdir(toolDir) source_folder = '../tool' def copy_file(path_read, path_write): names = os.listdir(path_read) for name in names: path_read_new = os.path.join(path_read, name) path_write_new = os.path.join(path_write, name) if os.path.isdir(path_read_new): if not os.path.exists(path_write_new): os.mkdir(path_write_new) copy_file(path_read_new, path_write_new) else: copy(path_read_new, path_write_new) copy_file(source_folder, toolDir) block_cipher = None a = Analysis(['OrthoMain.py'], pathex=[], binaries=[], datas=[('D:/ANACONDA/envs/micro/Lib/site-packages/dask/dask.yaml', './dask'), ('D:/ANACONDA/envs/micro/Lib/site-packages/distributed/distributed.yaml', './distributed')], hiddenimports=['pyproj._compat'], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, [], name='OrthoMain', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], runtime_tmpdir=None, console=True, disable_windowed_traceback=False, target_arch=None, codesign_identity=None, entitlements_file=None )