Skip to content

Commit 93e6052

Browse files
committed
fixup! fixup! fixup! Support pyenv on Windows
1 parent f690b90 commit 93e6052

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/com/ableton/Pyenv.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ class Pyenv implements Serializable {
6868
'eval "\$(pyenv init -)"',
6969
]
7070
} else {
71-
installCommands.add("export PATH=${pyenvRoot}/shims:${pyenvRoot}/bin:\$PATH")
71+
String posixPyenvRoot = pyenvRoot[1] == ':' ?
72+
"/${pyenvRoot[0].toLowerCase()}/${pyenvRoot.substring(3)}" : pyenvRoot
73+
installCommands.add(
74+
"export PATH=${posixPyenvRoot}/shims:${posixPyenvRoot}/bin:\$PATH"
75+
)
7276
}
7377
installCommands += [
7478
"pyenv install --skip-existing ${trimmedPythonVersion}",

0 commit comments

Comments
 (0)