no excecutable file extension on linux :"3

This commit is contained in:
Dpeta 2022-05-08 04:43:40 +02:00
parent 22c6b8b57f
commit c3b8bc2088

View file

@ -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'),