You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
roches-probabilistic-hazard.../anaconda-prompt.bat

17 lines
578 B
Batchfile

:: This script opens a prompt on AUTOCAD2 for running python scripts.
:: It addresses the following problems:
:: - CMD can't run on UNC file paths.
:: - The system PATH environment variable on AUTOCAD2 points to an old Python.
:: - Installing anaconda for all users requires admin rights.
:: Define python installation location
set PYTHONPATH=C:\Users\Public\Anaconda3
:: Mount current folder on network drive (CMD doesn't like UNC file paths)
cls
pushd %~dp0
:: Activate anaconda environment
%windir%\system32\cmd.exe /K ""%PYTHONPATH%\Scripts\activate.bat" "%PYTHONPATH%"