Sublime Forum

[ST3] Reload a package?

#1

Hi,

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?

Thanks

0 Likes

#2

Yes. You must create reloader file. For example see in the ST3 Package Control source

0 Likes