En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Unverified Commit fe7b442a authored by Julien Veyssier's avatar Julien Veyssier
Browse files

create tmp directory in each step if necessary


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent 26905975
......@@ -431,6 +431,8 @@ def main(parms_file, nbProc, generator=False):
# Get parameters from configuration file
parms = ConfigParser.ConfigParser(allow_no_value=True)
tmpPath = os.path.join(configFileDir, 'tmp')
if not os.path.isdir(tmpPath):
os.mkdir(tmpPath)
parms.read(parms_file)
directory_out = parms.get('dir_out', 'files')
# manage absolute and relative paths
......
......@@ -386,6 +386,8 @@ def main(parms_file, nbProc, generator=False):
# Get parameters from configuration file
parms = ConfigParser.ConfigParser(allow_no_value=True)
tmpPath = os.path.join(configFileDir, 'tmp')
if not os.path.isdir(tmpPath):
os.mkdir(tmpPath)
parms.read(parms_file)
directory_out = parms.get('dir_out', 'files')
# manage absolute and relative paths
......
......@@ -206,6 +206,8 @@ def main(parms_file, nbProc, generator=False):
# Get parameters from configuration file
parms = ConfigParser.ConfigParser(allow_no_value=True)
tmpPath = os.path.join(configFileDir, 'tmp')
if not os.path.isdir(tmpPath):
os.mkdir(tmpPath)
parms.read(parms_file)
directory_out = parms.get('dir_out', 'files')
# manage absolute and relative paths
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment