-
Notifications
You must be signed in to change notification settings - Fork 2
/
win_run_debug.vbs
executable file
·25 lines (20 loc) · 1.01 KB
/
win_run_debug.vbs
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
'this file starts the python-program tambi.py with the python-interpreter
dim current_path
Set fso = CreateObject("Scripting.FileSystemObject")
current_path = fso.GetParentFolderName(wscript.ScriptFullName)
dim python_src_folder, index_py_path, path_python_runtime
python_src_folder = ""
index_py_path = python_src_folder & "\tambi.py"
path_python_runtime = ".\win-run\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\python.exe"
log_file = current_path & "\log.txt"
run_command = current_path & path_python_runtime
run_argument = current_path & index_py_path
'wscript.Echo run_command
'wscript.Echo run_argument
'run_everything = "%comspec% /c" & run_command & " " & run_argument & " > " & log_file
run_everything = "%comspec% /c" & run_command & " " & run_argument
'wscript.echo run_everything
Set wShell = WScript.CreateObject("WScript.Shell")
wShell.CurrentDirectory = current_path & python_src_folder
'result = wShell.Run( run_everything, WindowStyle_Hidden)
result = wShell.Run( run_everything)