Skip to content

Commit

Permalink
Update asg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Nov 6, 2017
1 parent 5016a49 commit fda121a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ def parent(self):
.. warning:: The parent directory is `None` only for the system root directory
"""
try:
if self._node == os.path.abspath(os.sep):
if self._node.lower() == os.path.abspath(os.sep).lower():
return None
elif self._node in ["/", "\\"]:
return None
else:
return self._asg[self.globalname[:len(self.globalname)-len(self.localname)]]
except Exception as e:
Expand Down

0 comments on commit fda121a

Please sign in to comment.