Update load_plugins to be more Windows friendly. Uses File::PATH_SEPARATOR instead of hard-coded colon (':').

This commit is contained in:
Mark LaPerriere 2012-07-12 15:25:28 -03:00
parent c634cbedcc
commit 28e19d5449
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ module Vagrant
def load_plugins def load_plugins
# Add our private gem path to the gem path and reset the paths # Add our private gem path to the gem path and reset the paths
# that Rubygems knows about. # that Rubygems knows about.
ENV["GEM_PATH"] = "#{@gems_path}:#{ENV["GEM_PATH"]}" ENV["GEM_PATH"] = "#{@gems_path}#{::File::PATH_SEPARATOR}#{ENV["GEM_PATH"]}"
::Gem.clear_paths ::Gem.clear_paths
# Load the plugins # Load the plugins