exec_wrapper.py: sys.path fixup for test scripts

This commit is contained in:
The MMGen Project 2023-10-03 14:27:55 +00:00
commit 31390cfa33
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 6 deletions

View file

@ -19,6 +19,7 @@ def exec_wrapper_init():
exec_wrapper_sys.path[1] = cwd
from test.overlay import get_overlay_tree_dir
exec_wrapper_sys.path[0] = get_overlay_tree_dir(cwd)
exec_wrapper_sys.path.insert(2, exec_wrapper_os.path.join(cwd,'test'))
else:
exec_wrapper_sys.path.pop(0)