Skip to content

Commit caa116d

Browse files
authored
Fix the fix (#1453)
Signed-off-by: paul.profizi <[email protected]>
1 parent 766cc63 commit caa116d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansys/dpf/core/server_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os
1010
import socket
1111
import subprocess
12+
import sys
1213
import time
1314
import warnings
1415
import traceback
@@ -928,7 +929,7 @@ def __init__(
928929
# Update the python os.environment
929930
if not os.name == "posix":
930931
new_path = subprocess.check_output(
931-
["python", "-c", r'import os; print(os.environ["PATH"])'], text=True
932+
[sys.executable, "-c", r'import os; print(os.environ["PATH"])'], text=True
932933
) # pragma: no cover
933934
os.environ["PATH"] = new_path
934935

0 commit comments

Comments
 (0)