Skip to content

Commit 620d3cd

Browse files
committed
Allow run diagnostic test from anywhere
1 parent b784b8a commit 620d3cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Python/tests/diagnostic_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
import numpy as np
2020
import time
2121

22-
sys.path.append('..')
22+
dir_path = os.path.dirname(os.path.realpath(__file__))
23+
sys.path.append(os.path.join(dir_path, '..'))
2324
from wcon import WCONWorms, MeasurementUnit
2425
from wcon.measurement_unit import MeasurementUnitAtom
2526

0 commit comments

Comments
 (0)