Skip to content
Snippets Groups Projects
Commit e87876c4 authored by Boman Romain's avatar Boman Romain
Browse files

make __file__ an absolute path (for Linux+python 3.8)

parent a06019d3
No related branches found
No related tags found
No related merge requests found
Pipeline #7191 passed
fossils.py 100644 → 100755
......@@ -286,6 +286,8 @@ if __name__ == "__main__":
os.environ['OMP_NUM_THREADS'] = str(args.k)
cxxfem.set_num_threads(args.k)
__file__ = os.path.abspath(__file__) # relative path on Linux with python <=3.8
# display env variables
try:
print(f"OMP_NUM_THREADS={os.environ['OMP_NUM_THREADS']}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment