a (temporary) solution for the __file__ access issues in imported modules, see #408
This commit is contained in:
1 parent
709c53a679
commit
08b48807e9
5 files changed
+41
-4
No files matched your search
+1
-1
@@ -142,7 +142,7 @@ class BaseDefinition(object):
|
||||
stripped = stripped.parent
|
||||
if isinstance(stripped, pr.Name):
|
||||
stripped = stripped.parent
|
||||
return type(stripped).__name__.lower()
|
||||
return type(stripped).__name__.lower().replace('wrapper', '')
|
||||
|
||||
def _path(self):
|
||||
"""The module path."""
|
||||
|
||||
Reference in new issue
Block a user