Some more minor adaptions
This commit is contained in:
1 parent
4a3fc91c1e
commit
39162de2a8
3 files changed
+21
-18
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user