schnullerbacke / python4delphi

Automatically exported from code.google.com/p/python4delphi
0 stars 0 forks source link

bug: #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the pythonEngine.pas file.

in the function:
   function IsPythonVersionRegistered(PythonVersion : string;
  out InstallPath: string; out AllUserInstall: Boolean) : Boolean;

code like this:

        RootKey := HKEY_LOCAL_MACHINE;
        if KeyExists(key) then begin
          AllUserInstall := True;
          Result := True;
        end;

it does not OpenKey and read the default value from registry, but it set 
AllUserInstall = True. so it cannot read python path from registry.

i think it can modify like this:

   RootKey := HKEY_LOCAL_MACHINE;
        if KeyExists(key) then begin
          OpenKey(key, FALSE);
          InstallPath := ReadString('');
          AllUserInstall := True;
          Result := True;
        end;

sorry english is not my Mother tongue

Original issue reported on code.google.com by tbxyww@gmail.com on 25 Jul 2011 at 8:48

GoogleCodeExporter commented 9 years ago
I am not sure why what PyScripter is doing is wrong.  All user installations 
place the dll in the system path, so the InstallPath is not needed.

Original comment by pyscripter on 25 Jul 2011 at 11:10