@@ -2003,7 +2003,7 @@ TPythonType = class; //forward declaration
2003
2003
{ $IFEND}
2004
2004
TPythonEngine = class (TPythonInterface)
2005
2005
private
2006
- FVenvPythonExe: string;
2006
+ FPythonExecutable: string;
2007
2007
FInitScript: TStrings;
2008
2008
FIO: TPythonInputOutput;
2009
2009
FRedirectIO: Boolean;
@@ -2153,7 +2153,7 @@ TPythonEngine = class(TPythonInterface)
2153
2153
property PythonPath: UnicodeString read FPythonPath write FPythonPath;
2154
2154
published
2155
2155
property AutoFinalize: Boolean read FAutoFinalize write FAutoFinalize default True;
2156
- property VenvPythonExe : string read FVenvPythonExe write FVenvPythonExe ;
2156
+ property PythonExecutable : string read FPythonExecutable write FPythonExecutable ;
2157
2157
property DatetimeConversionMode: TDatetimeConversionMode read FDatetimeConversionMode write FDatetimeConversionMode default DEFAULT_DATETIME_CONVERSION_MODE;
2158
2158
property InitScript: TStrings read FInitScript write SetInitScript;
2159
2159
property IO: TPythonInputOutput read FIO write SetIO;
@@ -4760,10 +4760,10 @@ procedure TPythonEngine.Initialize;
4760
4760
PPWcharT(PByte(@Config) + ConfigOffests[MinorVersion, TConfigFields.home]),
4761
4761
PWCharT(StringToWCharTString(FPythonHome)));
4762
4762
// Set venv executable if available
4763
- if FVenvPythonExe <> ' ' then
4763
+ if FPythonExecutable <> ' ' then
4764
4764
PyConfig_SetString(Config,
4765
4765
PPWcharT(PByte(@Config) + ConfigOffests[MinorVersion, TConfigFields.executable]),
4766
- PWCharT(StringToWCharTString(FVenvPythonExe )));
4766
+ PWCharT(StringToWCharTString(FPythonExecutable )));
4767
4767
4768
4768
// Set program arguments (sys.argv)
4769
4769
SetProgramArgs(Config);
@@ -4872,8 +4872,8 @@ procedure TPythonEngine.Initialize;
4872
4872
if FPythonHome <> ' ' then
4873
4873
PyInitConfig_SetStr(Config, ' home' , PAnsiChar(EncodeString(FPythonHome)));
4874
4874
// Set venv executable if available
4875
- if FVenvPythonExe <> ' ' then
4876
- PyInitConfig_SetStr(Config, ' executable' , PAnsiChar(EncodeString(FPythonHome )));
4875
+ if FPythonExecutable <> ' ' then
4876
+ PyInitConfig_SetStr(Config, ' executable' , PAnsiChar(EncodeString(FPythonExecutable )));
4877
4877
4878
4878
// Set program arguments (sys.argv)
4879
4879
SetProgramArgs(Config);
0 commit comments