labgrid
labgrid copied to clipboard
Imports in imported files only work in the toplevel directory
Files imported in the imports
statement can not import other files which are also used in import statements if they are not in the same directory as the yaml
file.
This is due to how sys.path
works, It only points to the directory of the yaml
file.
Approaches for fixes:
- Detect directories in the imports statement and add them to
sys.path
- figure out why the
import
statement does not usesys.modules
for resolution and fix it