Skip to content

Commit cc4d22d

Browse files
committed
Revert PATH fix for Linux
Signed-off-by: paul.profizi <[email protected]>
1 parent 7f212b0 commit cc4d22d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ansys/dpf/core/server_types.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -928,11 +928,8 @@ def __init__(
928928
self.set_as_global(as_global=as_global)
929929
# Update the python os.environment
930930
if not os.name == "posix":
931-
path_str = "%PATH%"
932-
else:
933-
path_str = "$PATH"
934-
new_path = subprocess.check_output(["echo", path_str], shell=True, text=True)
935-
os.environ["PATH"] = new_path
931+
new_path = subprocess.check_output(["echo", "%PATH%"], shell=True, text=True)
932+
os.environ["PATH"] = new_path
936933

937934
@property
938935
def version(self):

0 commit comments

Comments
 (0)