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