Home Download Buy Blog Forum Support

[ST3] Reload a package?

[ST3] Reload a package?

Postby giorgian on Fri Mar 29, 2013 11:37 am


I'm trying to get a couple of packages to work under ST3. 2to3 does most of the work, but then there are a few things that must be changed, so I proceed by trial and error.

When I save Packages/MyPackage/MyPackage.py, it is reloaded; however, when I save Packages/MyPackage/some_other_file.py, it doesn't. I tried to blindly find a way to reload a plugin, but in the end the only way I found is to quit ST3 and relaunch it.

Is there a way to entirely reload a package (not just the main file but all its modules) without relaunching ST3?

Posts: 10
Joined: Mon Dec 19, 2011 1:09 pm

Re: [ST3] Reload a package?

Postby LONGMAN on Sat Mar 30, 2013 8:36 am

Yes. You must create reloader file. For example see in the ST3 Package Control source
AutoBackups: ST2 / ST3
CodeFormatter: ST2 / ST3
StringUtilities: ST2 / ST3
Posts: 68
Joined: Mon Nov 26, 2012 5:03 pm
Location: Tbilisi, Georgia

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 30 guests