Commit d27fb4f7 by Tobias Langer

Fixed errornous variable name.

parent 4f31a492
......@@ -48,12 +48,12 @@ def create_dir(filename):
removal if it exists.
"""
try:
os.makedirs(path)
os.makedirs(filename)
except FileExistsError:
if not query_yes_no('Folder exists, remove?', default='yes'):
return False
shutil.rmtree(path)
os.makedirs(path)
shutil.rmtree(filename)
os.makedirs(filename)
return True
def create_header(headerfile, experiment, destination):
......
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 sign in to comment