mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 17:03:05 +02:00
9 lines
267 B
Python
9 lines
267 B
Python
import os
|
|
import sys
|
|
|
|
# Add repository root to sys.path so 'import PYTHON.*' works when running
|
|
# pytest with a subdirectory as rootdir.
|
|
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../.."))
|
|
if ROOT not in sys.path:
|
|
sys.path.insert(0, ROOT)
|