From e77c780e0dd2d52925fe3bec2bba2bbf67728e1c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 13 Feb 2010 11:50:01 -0800 Subject: [PATCH] Add defined? check for defining PROJECT_ROOT to suppress warnings --- lib/vagrant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 2b655b6e1..a1b1664ff 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -1,6 +1,6 @@ libdir = File.dirname(__FILE__) $:.unshift(libdir) -PROJECT_ROOT = File.join(libdir, '..') +PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT) # The libs which must be loaded prior to the rest %w{ftools json pathname logger virtualbox net/ssh