Sublime Forum

Reloading packages while developing

#1

I’m working on a package that has files in a sub directory, e.g. a file

packages\Markdown Preview\markdown\extensions\tables.py

Editing the file doesn’t reload the package. Editing a file in the root folder reloads the package according to the console but doesn’t reload the files in the sub folders.

The only way to get it to reload is to quit and restart ST. Is there any way of forcing it to reload the package from the console or such?

0 Likes

#2

try sublime_plugin.reload_plugin(modulename) it does sound like it will only reload the plugin but it should also handle any other modules fine. check the sublime_plugin.py from sublimes folder

0 Likes