-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmulticycle_creator.run.bat
executable file
·54 lines (44 loc) · 1.48 KB
/
multicycle_creator.run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
setlocal
set VERAViewDir=%~dp0
set HOME=%userprofile%
:try_0
rem ---------------------------------------------------------------------
rem - If you changed the path for your per-user Anaconda/Miniconda environment
rem - setup, set the value of the CondaDir variable to point to that path.
rem ---------------------------------------------------------------------
set CondaDir=%VERAViewDir%Miniconda2
if not exist "%CondaDir%\pythonw.exe" goto try_1
set PythonCommand=%CondaDir%\python.exe
goto found
:try_1
set CondaDir=%userprofile%\AppData\Local\Continuum\Miniconda2
if not exist "%CondaDir%\pythonw.exe" goto try_2
set PythonCommand=%CondaDir%\python.exe
goto found
:try_2
set CondaDir=%userprofile%\Miniconda2
if not exist "%CondaDir%\pythonw.exe" goto try_3
set PythonCommand=%CondaDir%\python.exe
goto found
:try_3
set CondaDir=%userprofile%\AppData\Local\Continuum\Anaconda2
if not exist "%CondaDir%\pythonw.exe" goto try_4
set PythonCommand=%CondaDir%\python.exe
goto found
:try_4
set CondaDir=%userprofile%\Anaconda2
if not exist "%CondaDir%\pythonw.exe" goto not_found
set PythonCommand=%CondaDir%\python.exe
goto found
:not_found
echo msgbox "Anaconda2/Miniconda2 installation not found. Edit this script to set the CondaDir variable." > %temp%\msg.vbs
call "%temp%\msg.vbs"
goto finished
:use_default
set PythonCommand=python
:found
set PYTHONPATH=%VERAViewDir%;%PYTHONPATH%
"%PythonCommand%" "%VERAViewDir%data\multicycle_creator.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
:finished
endlocal