0%

.sublime-build of Sublime Text 3 for Python

This post saves the content of sublime-build file for reference.

1
2
3
4
5
{
"cmd": ["C:/software/Anaconda3/envs/py_torch/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

Remarks:

  • Only the path in cmd needs user modification.
  • The above configuration uses the Python in a virtual environment named py_torch.