-
Create the virtual environment:
$ make create-venv SCADAJS_VENV_PATH=/path/to/somewhere/scadajs1
-
Activate and use it:
$ export SCADAJS_VENV_PATH=/path/to/somewhere/scadajs1 $ ./venv (scadajs1) $
Set the SCADAJS_VENV_PATH
to /path/to/existing/virtual-environment
and use the ./scada.js/venv
script to activate the virtual environment as usual.
- (Optional) Set the
SCADAJS_VENV_PATH
variable for theTARGET_TMUX_SESSION
:
tmux setenv -t ${TARGET_TMUX_SESSION} 'SCADAJS_VENV_PATH' /path/to/somewhere/scadajs1
- On every new pane, manually activate your virtual environment by:
$ ./scada.js/venv
(scadajs1) $
By setting the Tmux's SCADAJS_VENV_PATH
variable, ./scada.js/venv
script uses this
virtual environment by default. If you want to start a different virtual environment in your
new pane:
$ ./scada.js/venv /path/to/your/other/virtual-environment
(something) $