fix python

This commit is contained in:
Milovann Yanatchkov 2024-02-04 10:41:35 +01:00
parent 4cbc144016
commit dd410d6569

View file

@ -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: