Commit d27fb4f7 by Tobias Langer

Fixed errornous variable name.

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