davidhstocker / Graphyne

Graphyne is a smart graph - a property graph capable to actively reacting to changes and incorporating decision making logic, written in Python. It is designed to be easy to integrate into your Python projects, simple to use and very powerful. It uses Memetic as its graph definition and query language. It is capable of running with or without persistence.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memetic Repository Subpackages don't Support Script Content

davidhstocker opened this issue · 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.