According http://docs.sublimetext.info/en/latest/reference/build_systems/exec.html either “path” or “env” can be used to extend current PATH environment variable.
This is my build system for Fortran:
{
"cmd": "gfortran \"${file}\" -o \"${file_path}/${file_base_name}\"",
"path": "D:/mingw-w64/mingw64/bin",
"env": {"path": "D:/mingw-w64/mingw64/bin"},
"selector": "source.fortran",
}
I have gfortran.exe in “D:/mingw-w64/mingw64/bin” and when I try to build fortran file, I get:
‘gfortran’ is not recognized as an internal or external command,
operable program or batch file.
What am I doing wrong?