Merge branch 'Marc2020' of magit1.mpie.de:damask/DAMASK into Marc2020

This commit is contained in:
Franz Roters 2020-09-16 09:04:30 +02:00
commit a08c50d44c
2 changed files with 3 additions and 3 deletions

2
env/CONFIG vendored
View File

@ -2,4 +2,4 @@
set DAMASK_NUM_THREADS = 4 set DAMASK_NUM_THREADS = 4
set MSC_ROOT = /opt/msc set MSC_ROOT = /opt/msc
set MARC_VERSION = 2020 set MARC_VERSION = 2019.1

View File

@ -23,8 +23,8 @@ parser.add_argument('--editor', dest='editor', metavar='string', default='vi',
def copy_and_replace(in_file,dst): def copy_and_replace(in_file,dst):
with open(in_file) as f: with open(in_file) as f:
content = f.read() content = f.read()
content = content.replace('%INSTALLDIR%',str(damask_root/'bin')) content = content.replace('%INSTALLDIR%',msc_root)
content = content.replace('%VERSION%',str(marc_version).replace('.0','')) content = content.replace('%VERSION%',str(marc_version))
content = content.replace('%EDITOR%', parser.parse_args().editor) content = content.replace('%EDITOR%', parser.parse_args().editor)
with open(dst/Path(in_file).name,'w') as f: with open(dst/Path(in_file).name,'w') as f:
f.write(content) f.write(content)