Merge pull request #207 from johan-hake/johanhake/fix-206-swig-relative-import

Fix issue with relative import when using single header file import [Python]
This commit is contained in:
William S Fulton 2014-09-30 20:22:55 +01:00
commit a06dff17ad
25 changed files with 193 additions and 1 deletions

View file

@ -1880,6 +1880,7 @@ include_directive: includetype options string BEGINFILE {
Node *nint = new_node("import");
Node *mnode = new_node("module");
Setattr(mnode,"name", mname);
Setattr(mnode,"options",$2);
appendChild(nint,mnode);
Delete(mnode);
appendChild(nint,firstChild($$));