Sublime Forum

Unzip ST3 package

#1

Hi Developers,

I’m trying to port a ST2 package to ST3. Now the challenge is that, my package needs to access static files inside itself, but by default ST3 does not unzip a package before using it. Does anyone know how to get around this?

Interestingly, I noticed that my ST3 does in fact unzip some of the packages, but not the others. So maybe there is a very easy way to tell ST3 that “my pacakge needs to be unzipped?”

Many thanks,
Derek

0 Likes

#2

You have 2 solutions. The first is to use “sublime#load_resource” for ST3 (you can check the version number to see if this call is necessary for your plugin. If people are installing through package control, you can specify “.no-sublime-package” at the root of your plugin, and package control will extract it for you.

0 Likes