Skip to content

Commit cbcd6ed

Browse files
test/setup.py: Use test/variables.py
1 parent c763df9 commit cbcd6ed

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from setuptools import setup
55

66

7-
ROOT = os.path.dirname(os.path.realpath(__file__))
8-
sys.path.insert(0, ROOT)
7+
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
98

10-
import conftest
9+
with open(os.path.join(TEST_DIR, 'variables.py')) as varfile:
10+
exec(varfile.read())
1111

1212

1313
setup(
@@ -26,5 +26,7 @@
2626
'root': '..',
2727
'local_scheme': lambda _: '',
2828
},
29-
require_node_modules=[conftest.NODE_PACKAGE],
29+
require_node_modules=[
30+
NODE_PACKAGE, # pylint: disable=undefined-variable
31+
],
3032
)

0 commit comments

Comments
 (0)