diff --git a/data/gan.py b/data/gan.py index 6e6454e..0d449d2 100644 --- a/data/gan.py +++ b/data/gan.py @@ -171,9 +171,10 @@ class GNet : root = [] for loc in path.split(os.sep) : root.append(loc) - os.mkdir(os.sep.join(root)) + if not os.path.exists(os.sep.join(root)) : + os.mkdir(os.sep.join(root)) - else: + elif not os.path.exists(path): os.mkdir(path)