Modify ↓
Ticket #532 (new defect)
reset of PYTHONHOME as early as possible
| Reported by: | matysek | Owned by: | giovannibajo |
|---|---|---|---|
| Priority: | normal | Milestone: | PyInstaller 2.2 |
| Component: | Loader | Version: | |
| Severity: | normal | Keywords: | pythonhome |
| Cc: |
Description
Move the reset of PYTHONHOME as early as possible, that is immediately after Py_Initialize. Ideally, there should be some code like:
save PYTHOHOME current value set PYTHONHOME Py_Initialize() reset PYTHONHOME to original value
that immediately makes clear where PYTHONHOME is useful.
I just checked the code in launch.c and PYTHONHOME is set immediately before Py_Initialize(). So we just need to reset it back to the original value a few lines after.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
