Go to Tools > Build System > New Build System...
Now, copy the following JSON to it:
Remember to put the complete path for you python program.
Save the file with name "MyPython.sublime-build"
To get a file, file1.py to be build by this new build system:
Now, copy the following JSON to it:
{ "cmd" : ["/usr/local/bin/python3", "-u", "$file"]}
Remember to put the complete path for you python program.
Save the file with name "MyPython.sublime-build"
To get a file, file1.py to be build by this new build system:
- Open file1.py
- Go to Tools > Build System , and choose MyPython from the list.
- Select Tools > Build, or press ⌘B
Happy coding!