labgrid icon indicating copy to clipboard operation
labgrid copied to clipboard

Imports in imported files only work in the toplevel directory

Open Emantor opened this issue 5 years ago • 0 comments

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 use sys.modules for resolution and fix it

Emantor avatar May 03 '19 09:05 Emantor