[issue29857] Provide `sys._raw_argv` for host application's command line arguments

STINNER Victor report at bugs.python.org
Tue Mar 21 10:04:54 EDT 2017


STINNER Victor added the comment:

There is already an existing public C API get retrieve original program arguments *as text*:

/* Make the *original* argc/argv available to other modules.
   This is rare, but it is needed by the secureware extension. */

void
Py_GetArgcArgv(int *argc, wchar_t ***argv)
{
    *argc = orig_argc;
    *argv = orig_argv;
}

Are you talking about exposing these arguments at the Python level?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29857>
_______________________________________


More information about the Python-bugs-list mailing list