Skip to content

Commit

Permalink
TVB-2113: fixed activate scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianciu committed Nov 25, 2024
1 parent 73b77c5 commit ede47c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tvb_build/build_from_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def win64():
'bin\\tvb_stop.bat': 'distribution stop',
'bin\\jupyter_notebook.bat': set_path + 'cd ..\\bin\n..\\tvb_data\\Scripts\\jupyter lab ..\\demo_scripts',
'demo_scripts\\jupyter_notebook.bat': set_path + 'cd ..\\demo_scripts\n..\\tvb_data\\Scripts\\jupyter lab',
'bin\\activate_tvb_env.bat':'REM Conda must be installed before running this script \n conda activate ./tvb_data \n cmd /K'
'bin\\activate_tvb_env.bat':'REM Conda must be installed before running this script \n conda activate ../tvb_data \n cmd /K'
}

return Config("Windows", "C:\\miniconda\\envs\\tvb-run",
Expand Down Expand Up @@ -116,7 +116,7 @@ def linux64():
'bin/tvb_stop.sh': 'bash ./distribution.sh stop',
'bin/jupyter_notebook.sh': set_path + 'cd ../bin\n../tvb_data/bin/python -m jupyterlab ../demo_scripts',
'demo_scripts/jupyter_notebook.sh': set_path + 'cd ../demo_scripts\n../tvb_data/bin/python -m jupyterlab',
'bin/activate_tvb_env.sh': '# Conda must be installed before running this script \n conda activate ./tvb_data \n $SHELL'
'bin/activate_tvb_env.sh': '# Conda must be installed before running this script \n conda activate ../tvb_data \n $SHELL'
}

return Config("Linux", "/opt/conda/envs/tvb-run", join("lib", Environment.PYTHON_FOLDER, "site-packages"),
Expand Down
2 changes: 1 addition & 1 deletion tvb_build/setup_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def prepare_mac_dist():
_create_command_file(os.path.join(DIST_FOLDER, "bin", 'tvb_stop'),
'source ./distribution.command stop', 'Stopping TVB related processes.', True)
_create_command_file(os.path.join(DIST_FOLDER, "bin", 'activate_tvb_env'),
'conda activate ./tvb_data \n $SHELL', 'Conda must be installed before running this script', True)
'conda activate ../tvb_data \n $SHELL', 'Conda must be installed before running this script', True)
jupyter_command = '/Applications/{}/Contents/Resources/bin/jupyter lab '.format(APP)
_create_command_file(os.path.join(DIST_FOLDER, "bin", 'jupyter_notebook'),
jupyter_command + '../demo_scripts', 'Launching IPython Notebook from TVB Distribution')
Expand Down

0 comments on commit ede47c9

Please sign in to comment.