ST3新建py2和py3的build system

win7上同时装了py2和py3,在ST3中执行需要分别新建各自的build system:Tools->Build System->New Build System

py2:

{
    "cmd": ["C:/Python27/python2.exe", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "env": {"PYTHONIOENCODING": "utf-8"}
}

py3:

{
    "cmd": ["C:/Python35/python3.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "env": {"PYTHONIOENCODING": "utf-8"}
}

 

posted @ 2017-03-02 12:42  LUCIEN06  阅读(158)  评论(0)    收藏  举报