Skip to content

Commit 615522f

Browse files
committed
Changed workaround so that it can work with venvs
1 parent a20b191 commit 615522f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PythonEngine.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4520,7 +4520,7 @@ procedure TPythonEngine.Initialize;
45204520
'if sys.version_info > (3,11,0):'#13#10 + //1
45214521
' import os'#13#10 + //2
45224522
''#13#10 + //3
4523-
' dllpath = os.path.join(sys.prefix, ''DLLs'')'#13#10 + //4
4523+
' dllpath = os.path.join(sys.base_prefix, ''DLLs'')'#13#10 + //4
45244524
' if dllpath not in sys.path:'#13#10 + //5
45254525
' sys.path.insert(3, dllpath)'#13#10 + //6
45264526
''#13#10 + //7

0 commit comments

Comments
 (0)