Hello,
I am trying to create a custom build system for python and to set PYTHONPATH environment variable to the project path.
Currently my build system looks like this:
{
"cmd": "python","${file}"],
"env": {
"PYTHONPATH":"${project_path}"
}
}
The issue is that $project_path variable (nor any other variable) is expanded to its value when used in env element, while $file works perfectly in cmd.
At the same time $project_path works properly in cmd
"cmd":"echo","$project_path"]
PYHONPATH is indeed set (checked with os.environ inside my python script) but with the string “$project_path”.
Is it normal that variables are not taken into account in env element ?
I am using Sublime Text 2.0.1 build 2217 on Mac OS X Lion
Thanks
Bye
Filippo