Ticket #3556 defect closed fixed
win32 installer does not dected Python installation directory correctly
| Reported by: | osuchw | Owned by: | |
|---|---|---|---|
| Priority: | highest | Milestone: | Twisted-9.0 |
| Component: | release management | Keywords: | |
| Cc: | exarkun, radix, moonfallen, PenguinOfDoom | Branch: | |
| Author: | Launchpad Bug: |
Description
Both Twisted 8.1 and upcoming 8.2RC Windows installers copy files into C:\Python25 regardless where the real Python installation resides. Python is on the PATH Tested on WindowsXP SP3
C:\>python -c "import sys;print sys.platform;print sys.getwindowsversion();print sys.version" win32 (5, 1, 2600, 2, 'Service Pack 3') 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Following piece of .iss script used to get it correctly for me. (long time ago)
function GetPythonInstallPath(Ver: String) : String; begin RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Python\PythonCore\' + Ver + '\InstallPath', '', Result); end;
Change History
Note: See
TracTickets for help on using
tickets.
