Skip to content

Commit

Permalink
extensions: allow extensions in namespace packages
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed May 20, 2021
1 parent 5f76fda commit f866135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/extension/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _default_open_browser(self):

@classmethod
def get_extension_package(cls):
return cls.__module__.split('.')[0]
return __import__(cls.__module__, fromlist=cls.__module__).__package__

@classmethod
def get_extension_point(cls):
Expand Down

0 comments on commit f866135

Please sign in to comment.