Skip to content

Commit

Permalink
Update asg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Oct 10, 2017
1 parent d5fdfbc commit 0d23195
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def parent(self):
"""
if self._node == os.path.abspath(os.sep):
return None
elif self._node in ["/", "\"]:
return None
else:
return self._asg[self.globalname[:len(self.globalname)-len(self.localname)]]

Expand Down

0 comments on commit 0d23195

Please sign in to comment.