We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f1e7e5 commit 05ab640Copy full SHA for 05ab640
tests/conftest.py
@@ -1,8 +1,8 @@
1
# Ensure the repository root is on sys.path so `import cerebros` works when
2
# running tests without installing the package.
3
-import os
4
-import sys
+from os.path import abspath
+from sys import path
5
6
-ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
7
-if ROOT not in sys.path:
8
- sys.path.insert(0, ROOT)
+ROOT = abspath(os.path.join(os.path.dirname(__file__), ".."))
+if ROOT not in path:
+ path.insert(0, ROOT)
0 commit comments