Sublime Forum

Refer to actual sublime text location

#1

Hello. I am using Sublime Text 3 and the Sublime Linter package. In linter settings I can specify paths, for example for PHP. This usually looks like this:

"paths": { "linux": ], "osx": ], "windows": "C:/Users/Micha\u0142/Desktop/Sublime Text 3/Extensions/php" ] },
I am wondering if I can specify some universal path that refers to the ST3 installation folder so I can have my ST3 on pendrive with the PHP and don’t worry if the computer I will work on has the PHP installed on it. Sorry for my english.

0 Likes

#2

You can get to the packages path using variables, and go from there:
docs.sublimetext.info/en/latest/ … -variables

0 Likes

#3

@adzenith’s suggestion likely won’t help you here because you are not using build systems.

I don’t know if it is possible to use (some) variables in SublimeLinter settings, but maybe you can find something in the docs: sublimelinter.readthedocs.org/
If not, I suggest opening a ticket on the base package’s repo because this is something it needs to implement and not something in Sublime Text’s scope.

0 Likes