davidhstocker/Graphyne

Memetic Repository Subpackages don't Support Script Content

davidhstocker opened this issue · 0 comments

Memetic packages may contain sub-packages.

E.g. you could have a Bar subfolder inside a Foo repository folder and import only the Foo folder. A meme from another repo would access meme XXX inside of Boo via “Foo.Bar.XXX”. Right now, Graphyne supports this if the content contains only templates, but not if the subpackages contain Python code. This is because Graphyne walks the folder structure of declared repository folders and adds each to the Python path individually. Python3 does not allow us to import Foo and then import Bar.

We need to look into adding the repositories to the Python path and then using absolute import paths to clean this up.