Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #532 (new defect)

Opened 14 months ago

Last modified 7 weeks ago

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

comment:1 Changed 13 months ago by matysek

  • Milestone changed from PyInstaller 2.0 to PyInstaller 2.1

comment:2 Changed 7 weeks ago by matysek

  • Milestone changed from PyInstaller 2.1 to PyInstaller 2.2
View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.