Package Control's events module uses sublime.Settings() to provide cross-python-version events. Using events at import time therefore raises a RuntimeError as of ST4170 upon ST start as this API is not yet ready then.
This commit therefore removes Package Control dependency.
Instead all modules are removed from sys.module cache to force reloading each time main.py is reloaded. This strategy is used by various plugins with success.
Package Control's
events
module usessublime.Settings()
to provide cross-python-version events. Using events at import time therefore raises aRuntimeError
as of ST4170 upon ST start as this API is not yet ready then.This commit therefore removes Package Control dependency.
Instead all modules are removed from sys.module cache to force reloading each time main.py is reloaded. This strategy is used by various plugins with success.