mirror of
https://github.com/opus-tango/public-python.git
synced 2026-07-18 07:32:45 +00:00
make tfcfm only branch
This commit is contained in:
19
run.vbs
Normal file
19
run.vbs
Normal file
@@ -0,0 +1,19 @@
|
||||
Set sh = CreateObject("WScript.Shell")
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
sh.CurrentDirectory = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Function QuoteForCmd(s)
|
||||
QuoteForCmd = """" & Replace(s, """", """""") & """"
|
||||
End Function
|
||||
|
||||
Dim extra, i
|
||||
extra = ""
|
||||
For i = 0 To WScript.Arguments.Count - 1
|
||||
If Len(extra) > 0 Then extra = extra & " "
|
||||
extra = extra & QuoteForCmd(WScript.Arguments(i))
|
||||
Next
|
||||
|
||||
Dim cmdLine
|
||||
cmdLine = "cmd /c uv run main.py"
|
||||
If Len(extra) > 0 Then cmdLine = cmdLine & " " & extra
|
||||
sh.Run cmdLine, 0, False
|
||||
Reference in New Issue
Block a user