我使用 python 便携版和记忆棒的 sublime 便携版,并决定安装 sublime REPL,但是当尝试使用 python 便携版作为 sublimerepl 的构建路径时,它没有指定它。
简而言之,我无法像使用直接崇高文本一样指定 sublimerepl python 路径!
我尝试将以下内容添加到 SublimeREPL.sublime-settings
"default_extend_env": {"PATH": "{PATH}:C:\\Users\\Andy\\Documents\\_Main\\M-Stick Backups\\08.07.13\\Computing\\Python Portable\\Portable Python 2.7.3.1\\App\\python.exe"},
我也尝试过改变:
"cmd": ["python", "-i", "-u"],
至
"cmd": ["C:\\Users\\Andy\\Documents\\_Main\\M-Stick Backups\\08.07.13\\Computing\\Python Portable\\Portable Python 2.7.3.1\\App\\python.exe", "-u", "$file"],
在 Python/Main.sublime-menu 中
请注意,在正常的 sublime 中,我将以下内容添加到 Python.sublime-build:
{"cmd": ["C:\\Users\\Andy\\Documents\\_Main\\M-Stick Backups\\08.07.13\\Computing\\Python Portable\\Portable Python 2.7.3.1\\App\\python.exe", "-u", "$file"],"file_regex": "^[ ]*Iile \"(...*?)\", line ([0-9]*)","selector": "source.python"}
有任何想法吗?
谢谢,安德鲁