Sublime Forum

Accessing a file in a .sublime-package file

#1

I created plugin that required another text file in the plugin folder. My plugin worked fine in testing, but when I put it on Package Control and installed it, it didn’t work because my code couldn’t access the file in the .sublime-package file. Has anyone found a solution to this?

1 Like

#2

You can use “sublime#load_resource” to access the file. You can also add “.no-sublime-package” to the root of your plugin. This tells package control to always extract it.

0 Likes

#3

Thanks! The “.no-sublime-package” worked for me.

0 Likes