From c3b8bc2088bb63cd34c4d56f5a0ba63d9079061e Mon Sep 17 00:00:00 2001 From: Dpeta Date: Sun, 8 May 2022 04:43:40 +0200 Subject: [PATCH] no excecutable file extension on linux :"3 --- pyinstaller.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pyinstaller.py b/pyinstaller.py index 68333bd..588b04c 100644 --- a/pyinstaller.py +++ b/pyinstaller.py @@ -376,14 +376,15 @@ elif sys.platform == 'linux': files = os.listdir('dist') try: - os.mkdir(os.path.join('dist', 'Pesterchum')) - except FileExistsError: - pass + os.mkdir(os.path.join('dist', '.cache')) + except FileExistsError as e: + print(e) for x in files: try: - shutil.move(os.path.join('dist',x), os.path.join('dist', 'Pesterchum')) - except FileExistsError: - pass + shutil.move(os.path.join('dist',x), os.path.join('dist', '.cache', x)) + except FileExistsError as e: + print(e) + shutil.move(os.path.join('dist', '.cache'), os.path.join('dist', 'Pesterchum')) #shutil.copy(os.path.join('build', 'Pesterchum', 'xref-Pesterchum.html'), # os.path.join('dist', 'Pesterchum', 'xref-Pesterchum.html')) #shutil.copy(os.path.join('build', 'Pesterchum', 'Analysis-00.toc'),