Skip to content

Commit e07f79a

Browse files
Push the src imports after src is reloaded.
The snippet doesn't seem to work but maybe the `src` needs to be imported after the reload is done ?
1 parent 8671abe commit e07f79a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

commands_browser.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
import imp
44
import shutil
55
import sublime
6-
from .src.settings import load_commands_browser_settings
7-
from .src import (
8-
CommandsBrowserCoreCommandsCommand,
9-
CommandsBrowserPluginCommandsCommand, CommandsBrowserCommandJumpListener
10-
)
116

127

138
def reload(prefix, modules=[""]):
@@ -21,6 +16,13 @@ def reload(prefix, modules=[""]):
2116
reload("src")
2217

2318

19+
from .src.settings import load_commands_browser_settings
20+
from .src import (
21+
CommandsBrowserCoreCommandsCommand,
22+
CommandsBrowserPluginCommandsCommand, CommandsBrowserCommandJumpListener
23+
)
24+
25+
2426
def plugin_loaded():
2527
""" This function is called when the package is loaded, but before the API
2628
functions are made available. We need to do 2 things here.

0 commit comments

Comments
 (0)