From 4b52c39733c8f5389aeeb1aa56ae134ee4520a78 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 7 Jan 2012 13:13:17 -0800 Subject: [PATCH] More robust VBOX_INSTALL_PATH handling on Windows --- lib/vagrant/driver/virtualbox.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/driver/virtualbox.rb b/lib/vagrant/driver/virtualbox.rb index 21690c940..430fd26a9 100644 --- a/lib/vagrant/driver/virtualbox.rb +++ b/lib/vagrant/driver/virtualbox.rb @@ -36,7 +36,10 @@ module Vagrant # On Windows, we use the VBOX_INSTALL_PATH environmental # variable to find VBoxManage. if ENV.has_key?("VBOX_INSTALL_PATH") - @vboxmanage_path = "#{ENV["VBOX_INSTALL_PATH"]}\VBoxManage.exe" + # The path usually ends with a \ but we make sure here + path = ENV["VBOX_INSTALL_PATH"] + path += "\\" if !path.end_with?("\\") + @vboxmanage_path = "#{path}VBoxManage.exe" end end