twolfson / sublime-plugin-tests

Testing framework for Sublime Text plugins
The Unlicense
22 stars 2 forks source link

Programatically determine plugin directory #4

Open twolfson opened 11 years ago

twolfson commented 11 years ago

Currently, we are hard coded to use the plugin directory for Sublime Text 2 on Linux. If we are going to release this for all to use, we need to fix it.

There are 2 notes worth reading, the second of which makes the most sense:

# TODO: It would be nice to pull directory location from Sublime but it isn't critical
# TODO: Go about this by sniffing the known directory locations =D. If it exists, use it. (ST3 over ST2).
twolfson commented 11 years ago

Figured out the multiple config directories solution. If there are multiple flavors, run sublime_text --version and sniff from there ;)