always install post processing scripts into {$DAMASK_ROOT}/bin

custom installation directions will be made available by more standard
approaches
This commit is contained in:
Martin Diehl 2019-04-25 07:16:24 +02:00
parent 7104bc9934
commit 64c9a367c0
3 changed files with 2 additions and 4 deletions

2
CONFIG
View File

@ -1,8 +1,6 @@
# "set"-syntax needed only for tcsh (but works with bash and zsh) # "set"-syntax needed only for tcsh (but works with bash and zsh)
# DAMASK_ROOT will be expanded # DAMASK_ROOT will be expanded
set DAMASK_BIN = ${DAMASK_ROOT}/bin
set DAMASK_NUM_THREADS = 4 set DAMASK_NUM_THREADS = 4
set MSC_ROOT = /opt/msc set MSC_ROOT = /opt/msc

View File

@ -7,7 +7,7 @@ import damask
damaskEnv = damask.Environment() damaskEnv = damask.Environment()
baseDir = damaskEnv.relPath('processing/') baseDir = damaskEnv.relPath('processing/')
binDir = damaskEnv.options['DAMASK_BIN'] binDir = damaskEnv.relPath('bin/')
if not os.path.isdir(binDir): if not os.path.isdir(binDir):
os.mkdir(binDir) os.mkdir(binDir)

View File

@ -1,6 +1,6 @@
# -*- coding: UTF-8 no BOM -*- # -*- coding: UTF-8 no BOM -*-
import os,subprocess,shlex,re import os,re
class Environment(): class Environment():
__slots__ = [ \ __slots__ = [ \