From 5d4b8757c9e8beaef04bf5c7616149d616ea593b Mon Sep 17 00:00:00 2001 From: nre Date: Mon, 25 Sep 2023 09:15:11 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! Use posixPath to make safe paths --- src/com/ableton/Pyenv.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/ableton/Pyenv.groovy b/src/com/ableton/Pyenv.groovy index 9005c2d..4f4a04f 100644 --- a/src/com/ableton/Pyenv.groovy +++ b/src/com/ableton/Pyenv.groovy @@ -43,16 +43,15 @@ class Pyenv implements Serializable { int result script.withEnv(["PYENV_VERSION=${pythonVersion}"]) { List installCommands = [] - String safePyenvRoot = VirtualEnv.posixPath(pyenvRoot) - installCommands.add("export PYENV_ROOT=${safePyenvRoot}") - installCommands.add("export PATH=${safePyenvRoot}/bin:\$PATH") + installCommands.add("export PYENV_ROOT=${pyenvRoot}") + installCommands.add("export PATH=${pyenvRoot}/bin:\$PATH") if (script.isUnix()) { installCommands += [ "eval \"\$(pyenv init --path)\"", "eval \"\$(pyenv init -)\"", ] } else { - installCommands.add("export PATH=${safePyenvRoot}/shims:\$PATH") + installCommands.add("export PATH=${pyenvRoot}/shims:\$PATH") } installCommands += [ "pyenv install --skip-existing ${pythonVersion}",