Files

11 lines
596 B
Plaintext
Raw Permalink Normal View History

' DCU ESP32 debug console - hidden launcher, opens in default browser (no console).
' Desktop-window launcher: esp32_app.vbs Console-mode debug launcher: serve.bat
Set sh = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
base = fso.GetParentFolderName(WScript.ScriptFullName)
sh.CurrentDirectory = base
sh.Environment("PROCESS")("PYTHONUTF8") = "1"
pyw = sh.ExpandEnvironmentStrings("%LOCALAPPDATA%\Programs\Python\Python312\pythonw.exe")
If Not fso.FileExists(pyw) Then pyw = "pythonw.exe"
sh.Run """" & pyw & """ """ & base & "\esp32_server.py""", 0, False