Skip to content

Instantly share code, notes, and snippets.

@kongscn
Created August 22, 2013 09:08
Show Gist options
  • Save kongscn/6304858 to your computer and use it in GitHub Desktop.
Save kongscn/6304858 to your computer and use it in GitHub Desktop.
#NoTrayIcon
PythonDir = %A_ScriptDir%\..\python\App
MeldDir = %A_ScriptDir%
params := ""
firstParam := true
Loop, %0%
{
param = %A_Index%
firstChar := SubStr(%param%, 1, 1)
if (firstParam = false) {
params .= " "
}
if (firstChar != """" && firstChar != "-") {
params .= """"
}
params .= %param%
if (firstChar != """" && firstChar != "-") {
params .= """"
}
firstParam := false
}
RunWait, "%PythonDir%\pythonw.exe" "%MeldDir%\bin\meld" %params%
Exit, %ErrorLevel%
@kongscn
Copy link
Author

kongscn commented Aug 22, 2013

Compile with ahk2exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment