Add GUI refactor, modern theme, and configuration improvements
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
' XlsxClean.vbs — double-click launcher (no console window)
|
||||
' XlsxClean.vbs - double-click launcher (no console window)
|
||||
' Resolves repo root from this script's folder (desktop\ -> repo root).
|
||||
Option Explicit
|
||||
|
||||
Dim fso, sh, scriptDir, root, pythonExe, cmd, port
|
||||
Dim fso, sh, scriptDir, root, pythonExe, cmd
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
Set sh = CreateObject("WScript.Shell")
|
||||
|
||||
scriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
root = fso.GetParentFolderName(scriptDir)
|
||||
port = "8080"
|
||||
|
||||
' Prefer project venv, then py launcher, then python on PATH.
|
||||
pythonExe = root & "\.venv\Scripts\pythonw.exe"
|
||||
@@ -20,10 +19,10 @@ If Not fso.FileExists(pythonExe) Then
|
||||
End If
|
||||
|
||||
sh.CurrentDirectory = root
|
||||
' Window style 0 = hidden. Opens browser via NiceGUI show=True.
|
||||
cmd = """" & pythonExe & """ -m xlsx_clean.web_app --host 127.0.0.1 --port " & port
|
||||
' Window style 0 = hidden.
|
||||
cmd = """" & pythonExe & """ -m xlsx_clean.gui_app"
|
||||
If pythonExe = "py" Then
|
||||
cmd = "py -3 -m xlsx_clean.web_app --host 127.0.0.1 --port " & port
|
||||
cmd = "py -3 -m xlsx_clean.gui_app"
|
||||
End If
|
||||
|
||||
sh.Run cmd, 0, False
|
||||
|
||||
Reference in New Issue
Block a user