From e87876c4143cd3399f77e59c2a7e2a1a0275391a Mon Sep 17 00:00:00 2001 From: Romain Boman <romain.boman@gmail.com> Date: Fri, 24 Jun 2022 15:41:56 +0200 Subject: [PATCH] make __file__ an absolute path (for Linux+python 3.8) --- fossils.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 fossils.py diff --git a/fossils.py b/fossils.py old mode 100644 new mode 100755 index 7a5e84d..7fefe95 --- a/fossils.py +++ b/fossils.py @@ -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']}") -- GitLab