polishing

This commit is contained in:
Martin Diehl 2021-12-01 16:46:22 +01:00
parent 809221fb7e
commit e43a121e7d
1 changed files with 2 additions and 4 deletions

View File

@ -50,7 +50,7 @@ matches = {'Marc_tools': [['comp_user','comp_damask_*mp'],
'Mentat_menus':[['job_run.ms','job_run.ms']]} 'Mentat_menus':[['job_run.ms','job_run.ms']]}
print('patching files...\n') print('patching files...')
for directory in glob.glob(str(damask_root/'install/MarcMentat'/marc_version/'*')): for directory in glob.glob(str(damask_root/'install/MarcMentat'/marc_version/'*')):
for orig, mods in matches[Path(directory).name]: for orig, mods in matches[Path(directory).name]:
@ -67,11 +67,9 @@ os.system(f'xvfb-run -a {executable} -compile {menu_file}')
print('setting file access rights...') print('setting file access rights...')
files = (glob.glob(str(marc_root/f'marc{marc_version}/tools/run_damask*')) + files = (glob.glob(str(marc_root/f'marc{marc_version}/tools/*_damask*')) +
glob.glob(str(marc_root/f'marc{marc_version}/tools/comp_damask*')) +
glob.glob(str(marc_root/f'mentat{marc_version}/bin/kill[4-6]')) + glob.glob(str(marc_root/f'mentat{marc_version}/bin/kill[4-6]')) +
glob.glob(str(marc_root/f'mentat{marc_version}/bin/submit[4-6]'))) glob.glob(str(marc_root/f'mentat{marc_version}/bin/submit[4-6]')))
for file in files: for file in files:
os.chmod(file , 0o755) os.chmod(file , 0o755)