Sublime Forum

Pass "conda activate myenv" to terminus build sys

#1

sys setup:
Anaconda3 python
created conda env list
myenv1
myenv2
.
.

Wanted to run terminus build sys with specific env activation i.e “myenv1”

The following is the >> pyterm.sublime-build:

{
“target”: “terminus_open”,
“cancel”: “terminus_cancel_build”,
“title”:“Build Output”,
“auto_close”: false,
“focus”: true,
“timeit”:true,
“post_window_hooks”:[
[“carry_file_to_pane”,{“direction”:“right”}]
],

"shell_cmd": "C:\\Users\\me\\anaconda3\\python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",

"env": {"PYTHONIOENCODING": "utf-8"},

"variants":
[
    {
        "name": "Syntax Check",
        "shell_cmd": "python -m py_compile \"${file}\"",
    }
]

}

Thank you all

0 Likes