Some more minor adaptions

This commit is contained in:
Dave Halter
2018-09-05 01:49:19 +02:00
parent 4a3fc91c1e
commit 39162de2a8
3 changed files with 21 additions and 18 deletions

View File

@@ -65,10 +65,12 @@ class BaseDefinition(object):
# generate a path to the definition
self._module = name.get_root_context()
if self.in_builtin_module():
try:
py__file__ = self._module.py__file__
except AttributeError:
self.module_path = None
else:
self.module_path = self._module.py__file__()
self.module_path = py__file__()
"""Shows the file path of a module. e.g. ``/usr/lib/python2.7/os.py``"""
@property