Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-32030: Add _PyPathConfig_ComputeArgv0() #4845

Merged
merged 1 commit into from
Dec 13, 2017
Merged

bpo-32030: Add _PyPathConfig_ComputeArgv0() #4845

merged 1 commit into from
Dec 13, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 13, 2017

Changes:

  • Split _PySys_SetArgvWithError() into subfunctions for Py_Main():

    • Create the Python list object
    • Set sys.argv to the list
    • Compute argv0
    • Prepend argv0 to sys.path
  • Add _PyPathConfig_ComputeArgv0()

  • Remove _PySys_SetArgvWithError()

  • Py_Main() now splits the code to compute sys.argv/path0 and the
    code to update the sys module: add pymain_compute_argv()
    subfunction.

https://bugs.python.org/issue32030

Changes:

* Split _PySys_SetArgvWithError() into subfunctions for Py_Main():

  * Create the Python list object
  * Set sys.argv to the list
  * Compute argv0
  * Prepend argv0 to sys.path

* Add _PyPathConfig_ComputeArgv0()
* Remove _PySys_SetArgvWithError()
* Py_Main() now splits the code to compute sys.argv/path0 and the
  code to update the sys module: add pymain_compute_argv()
  subfunction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants