From d27fb4f7f9a4b16e0677a60fed8ea8b691691581 Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Wed, 5 Oct 2016 13:00:58 +0200 Subject: [PATCH] Fixed errornous variable name. --- generate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate.py b/generate.py index 6910e19..14b7463 100755 --- a/generate.py +++ b/generate.py @@ -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): -- libgit2 0.26.0