645
648
prototype = ctypes.WINFUNCTYPE(POINTER(LPCWSTR), LPCWSTR, POINTER(INT))
646
649
command_line = GetCommandLine()
647
650
# Skip the first argument, since we only care about parameters
649
652
if getattr(sys, 'frozen', None) is None:
650
653
# Invoked via 'python.exe' which takes the form:
651
654
# python.exe [PYTHON_OPTIONS] C:\Path\bzr [BZR_OPTIONS]