Skip to content

Commit

Permalink
fixes to activate
Browse files Browse the repository at this point in the history
* not in project workspace settings
* lab_launch is a failsafe if the sed doesn't work
* disable secondary activate from python extension
  • Loading branch information
AlbertDeFusco committed Aug 7, 2020
1 parent ee922a3 commit 4eeeda7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion start_vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "|---"
sed 's@^@| @' $OCV/project.code-workspace
echo "|---"

sed -E -i 's@CONDA_DESIRED_ENV@"$CONDA_DESIRED_ENV"@' $OCV/activate-env-spec.sh
sed -E -i 's@lab_launch@'"$CONDA_DESIRED_ENV"'@' $OCV/activate-env-spec.sh

python /opt/continuum/scripts/merge_vscode_settings.py $SETTINGS

Expand Down
2 changes: 1 addition & 1 deletion vscode/activate-env-spec.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
source ~/.bashrc
conda activate CONDA_DESIRED_ENV
conda activate lab_launch
4 changes: 3 additions & 1 deletion vscode/admin_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
"extensions.ignoreRecommendations": true,
"extensions.showRecommendationsOnlyOnDemand": true,
"workbench.startupEditor": "none",
"terminal.integrated.inheritEnv": false
"terminal.integrated.inheritEnv": false,
"terminal.integrated.shellArgs.linux": ["--init-file", "activate-env-spec.sh"],
"python.terminal.activateEnvironment": false
}
2 changes: 0 additions & 2 deletions vscode/project.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
"settings":
{
"python.pythonPath": "/opt/continuum/anaconda/envs/anaconda50_py36/bin/python",
"terminal.integrated.shellArgs.linux": ["--init-file", "activate-env-spec.sh"],
"python.terminal.activateEnvironment": false
}
}

0 comments on commit 4eeeda7

Please sign in to comment.