adjust access rights of newly created files

This commit is contained in:
Franz Roters 2021-12-01 16:01:55 +01:00
parent 5abfe3c214
commit 809221fb7e
1 changed files with 11 additions and 0 deletions

View File

@ -64,3 +64,14 @@ print('compiling Mentat menu binaries...')
executable = marc_root/f'mentat{marc_version}/bin/mentat' executable = marc_root/f'mentat{marc_version}/bin/mentat'
menu_file = marc_root/f'mentat{marc_version}/menus/linux64/main.msb' menu_file = marc_root/f'mentat{marc_version}/menus/linux64/main.msb'
os.system(f'xvfb-run -a {executable} -compile {menu_file}') os.system(f'xvfb-run -a {executable} -compile {menu_file}')
print('setting file access rights...')
files = (glob.glob(str(marc_root/f'marc{marc_version}/tools/run_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/submit[4-6]')))
for file in files:
os.chmod(file , 0o755)