Sublime Forum

Variable for the User folder

#1

Is there a built-in variable for the User folder? That if you type something like

print($SUBLIME_TEXT_USER_DIR)

in the Sublime Text’s console, it will return something like (depenging on the operating system):

/Users/yourname/Library/Application Support/Sublime Text/Packages/User

?

0 Likes

#2

You can call any available API command in ST’s console.

from pathlib import Path; Path(sublime.packages_path()) / "User"
2 Likes