Split the PATH environment variable using os.pathsep

This commit is contained in:
grossmj committed 2014-09-28 18:23:27 -06:00
1 parent 6dce005594
commit a8193fa063
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ class VirtualBox(IModule):
vbox_config = config.get_section_config(name.upper())
self._vboxwrapper_path = vbox_config.get("vboxwrapper_path")
if not self._vboxwrapper_path or not os.path.isfile(self._vboxwrapper_path):
paths = [os.getcwd()] + os.environ["PATH"].split(":")
paths = [os.getcwd()] + os.environ["PATH"].split(os.pathsep)
# look for vboxwrapper in the current working directory and $PATH
for path in paths:
try: