From dd410d6569464071ac44d216a5baab8cf90de0e1 Mon Sep 17 00:00:00 2001 From: milovann Date: Sun, 4 Feb 2024 10:41:35 +0100 Subject: [PATCH] fix python --- python/extract.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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: