|
@@ -36,7 +36,7 @@ def main():
|
|
|
spec = importlib.util.spec_from_file_location('example', mod_path)
|
|
|
mod = importlib.util.module_from_spec(spec)
|
|
|
spec.loader.exec_module(mod)
|
|
|
- sys.modules['example'] = mod
|
|
|
+ sys.modules[__name__] = mod
|
|
|
|
|
|
class App(mod.ExampleApp):
|
|
|
"""An app that launches an example and waits for it to start up, checking for
|
|
@@ -45,7 +45,7 @@ def main():
|
|
|
name = 'example'
|
|
|
extension_url = '/example'
|
|
|
default_url = '/example'
|
|
|
- open_browser = Bool(False)
|
|
|
+ open_browser = Bool(False)
|
|
|
# base_url = '/foo/'
|
|
|
ip = '127.0.0.1'
|
|
|
|
|
@@ -53,11 +53,10 @@ def main():
|
|
|
run_test(self.serverapp, run_browser)
|
|
|
super().initialize_settings()
|
|
|
|
|
|
-
|
|
|
def _jupyter_server_extension_paths():
|
|
|
return [
|
|
|
{
|
|
|
- 'module': 'example',
|
|
|
+ 'module': __name__,
|
|
|
'app': App
|
|
|
}
|
|
|
]
|