()
return argv
Convert command-line arguments to unicode.
Convert command-line arguments to unicode.
Convert command - line arguments to unicode .
def _get_unicode_argv():
    """Convert command-line arguments to unicode."""
    # we need to go to the Windows API as argv may not be in a full unicode encoding
    # note that this will not be necessary in Python 3 where sys.argv is unicode
    # http://code.activestate.com/recipes/572200-get-sysargv-with-unicode-characters-under-windows/
    cmd = _GetCommandLineW()
    argc = c_int(0)
    argv = _CommandLineToArgvW(cmd, byref(argc))
    argv = [argv[i] for i in range(argc.value)]
    # clip off the python interpreter call, if we use it
    # anything that didn't get included in sys.argv is not for us either
    argv = argv[-len(sys.argv):]
    return argv
def _get_unicode_argv ( ) : # we need to go to the Windows API as argv may not be in a full unicode encoding # note that this will not be necessary in Python 3 where sys.argv is unicode # http://code.activestate.com/recipes/572200-get-sysargv-with-unicode-characters-under-windows/ cmd = _GetCommandLineW ( ) argc = c_int ( 0 ) argv = _CommandLineToArgvW ( cmd , byref ( argc ) ) argv = [ argv [ i ] for i in range ( argc . value ) ] # clip off the python interpreter call, if we use it # anything that didn't get included in sys.argv is not for us either argv = argv [ - len ( sys . argv ) : ] return argv