Home Download Buy Blog Forum Support

Reloading packages while developing

Reloading packages while developing

Postby tommyp on Fri Jul 04, 2014 3:50 pm

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?
Posts: 1
Joined: Fri Jul 04, 2014 3:35 pm

Re: Reloading packages while developing

Postby valerij_ on Fri Jul 04, 2014 4:00 pm

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
Posts: 62
Joined: Fri Feb 14, 2014 5:59 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 7 guests