Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
95c255e4
Commit
95c255e4
authored
Apr 25, 2018
by
André Anjos
💬
Browse files
Don't use pkg_resources to declare namespace - prefer pkgutil
parent
d7816ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/__init__.py
View file @
95c255e4
...
...
@@ -25,5 +25,6 @@
# #
###############################################################################
#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
__import__
(
'pkg_resources'
).
declare_namespace
(
__name__
)
# see https://docs.python.org/3/library/pkgutil.html
from
pkgutil
import
extend_path
__path__
=
extend_path
(
__path__
,
__name__
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment