1
0
forked from VimPlug/jedi

namespace packages first part, fix goto problems

This commit is contained in:
David Halter
2013-08-13 23:55:22 +04:30
parent 4e087f6c09
commit 2e0863e76a
2 changed files with 54 additions and 5 deletions

View File

@@ -1 +1,9 @@
foo = 'ns1!'
# this is a namespace package
try
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)