Sublime Forum

Relative paths in .sublime-build

#1

Is it possible to use relative paths in .sublime-build? If not, where can I leave the proposal to add this function?

It would be very convenient to if I could write so let’s say:
“path”: “…/TDM-GCC-64/bin;…/TDM-GCC-64/lib”
As a result, I would get a bundle convenient portable compiler and sublime Text.

I apologize for the poor translation, I used a machine translation.

0 Likes

#2

You can not do this directly from within a build system, because the path key only expands environmental variables but not ST variables. You will need to write a shell script that you pass ${file_path} to in the cmd key and expand the path there before launching your tool.

See also:

2 Likes