fix workflow

This commit is contained in:
Milovann Yanatchkov 2024-02-04 10:32:48 +01:00
parent 5dbc071a3b
commit cfc4288e8e
2 changed files with 11 additions and 5 deletions

View file

@ -24,8 +24,9 @@ jobs:
python3 $file python3 $file
elif [[ $extension == "ifc" ]] elif [[ $extension == "ifc" ]]
then then
echo "exec ifc file" echo "ifc file"
python3 $file echo "exec extract $file"
python3 extract.py $file
else else
echo $extension echo $extension
fi fi

View file

@ -118,13 +118,18 @@ if len(sys.argv) == 1:
filename = "duplex" filename = "duplex"
p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + filename + ".ifc" p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + filename + ".ifc"
compute_server(filename,p) compute_server(filename,p)
# Local # Local or Server (extract filename)
elif len(sys.argv) > 1: elif len(sys.argv) > 1:
use_local = False
filename = sys.argv[1] filename = sys.argv[1]
print(f">> filename:{filename}") print(f">> filename:{filename}")
p = "../ifc/" + filename + ".ifc"
if os.path.exists(p): if os.path.exists(p):
compute_local(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: else:
print(os.listdir("../ifc")) print(os.listdir("../ifc"))
else: else: