namespace packages first part, fix goto problems
This commit is contained in:
1 parent
4e087f6c09
commit
2e0863e76a
2 files changed
+54
-5
No files matched your search
@@ -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__)
|
||||
Reference in new issue
Block a user