diff --git a/Sandbox Scripts/extract.py b/Sandbox Scripts/extract.py index 94601b2..c302116 100644 --- a/Sandbox Scripts/extract.py +++ b/Sandbox Scripts/extract.py @@ -27,7 +27,8 @@ def extract(filename): """ # ensure that an output dir exists filepath = re.findall(OUTREGEX, filename) - od = (filepath[0] or "") + "/output" + od = (filepath[0] or "") + "/" + os.path.exists(od) or os.makedirs(od) output_count = 0 try: @@ -60,6 +61,7 @@ if __name__ == "__main__": path = "" if len(sys.argv) > 1: path = sys.argv[1] + print("Path: " + path) #Make sure there's a trailing slash pathRE = re.search(INREGEX, path) if pathRE is None: