Finished changing the import logic. The sys.path calculations within Jedi are clearer now.

This commit is contained in:
Dave Halter committed 2015-04-25 22:45:08 +02:00
1 parent d038fba9df
commit 06d134a7c1
7 files changed
+32 -34

No files matched your search

+6
View File
@@ -760,6 +760,12 @@ class ModuleWrapper(use_metaclass(CachedMetaClass, pr.Module, Wrapper)):
return name
def py__file__(self):
"""
In contrast to Python's __file__ can be None.
"""
if self._module.path is None:
return None
return os.path.abspath(self._module.path)
def py__package__(self):