1
0
forked from VimPlug/jedi

somehow temporary solution to enable completion of __file__

This commit is contained in:
Dave Halter
2014-07-01 15:10:32 +02:00
parent f7a384bf18
commit 8d63e6f6e7
4 changed files with 25 additions and 6 deletions
+4
View File
@@ -554,6 +554,10 @@ class ModuleWrapper(use_metaclass(CachedMetaClass, pr.Module)):
@memoize_default()
def _sub_modules(self):
"""
Lists modules in the directory of this module (if this module is a
package).
"""
path = self._module.path
names = []
if path.endswith(os.path.sep + '__init__.py'):