Add defined? check for defining PROJECT_ROOT to suppress warnings

This commit is contained in:
Mitchell Hashimoto 2010-02-13 11:50:01 -08:00
parent 1288b229d1
commit e77c780e0d
1 changed files with 1 additions and 1 deletions

View File

@ -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