diff --git a/python/extract.py b/python/extract.py index 52e05cd..a6e4110 100644 --- a/python/extract.py +++ b/python/extract.py @@ -123,13 +123,12 @@ elif len(sys.argv) > 1: use_local = False filename = sys.argv[1] print(f">> filename:{filename}") - if os.path.exists(p): - if use_local: - p = "../ifc/" + filename + ".ifc" - compute_local(filename,p) - else: - p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + filename + ".ifc" - compute_server(filename,p) + if use_local: + p = "../ifc/" + filename + ".ifc" + compute_local(filename,p) + else: + p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + filename + ".ifc" + compute_server(filename,p) else: print(os.listdir("../ifc")) else: