Skip to content

Commit 5d2e4b8

Browse files
committed
remove hardcoded paths
1 parent d40d86a commit 5d2e4b8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

new_regression.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@
66
from tqdm import tqdm
77

88
if "SOFA_ROOT" not in os.environ:
9-
sofa_real_root = "/Users/fred/Work/sofa"
10-
sofa_root = sofa_real_root + "/build/current-ninja"
11-
sofapython3_path = sofa_root + "/lib/python3/site-packages"
12-
sofa_build_configuration = "Release"
13-
14-
os.environ["SOFA_ROOT"] = sofa_root
15-
os.environ["SOFA_BUILD_CONFIGURATION"] = sofa_build_configuration
16-
sys.path.append(sofapython3_path)
9+
print('SOFA_ROOT environment variable has not been detected, quitting.')
10+
exit(1)
1711
else:
1812
sofapython3_path = os.environ["SOFA_ROOT"] + "/lib/python3/site-packages"
1913
sys.path.append(sofapython3_path)

0 commit comments

Comments
 (0)