aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xqi9
-rw-r--r--setup/qi_libs_base.rb2
2 files changed, 7 insertions, 4 deletions
diff --git a/qi b/qi
index f5711eaf..6bfddf62 100755
--- a/qi
+++ b/qi
@@ -42,8 +42,13 @@ begin
rescue LoadError
puts 'thor (package ruby-thor) not found'
end
-require_relative 'setup/sisu_version' # setup/sisu_version.rb
- include SiSUversion
+begin
+ require './setup/sisu_version' # ./setup/sisu_version.rb
+ include SiSUversion
+rescue LoadError
+ puts 'this does not appear to be a SiSU development directory'
+ exit
+end
require_relative 'setup/qi_libs' # setup/qi_libs.rb
require 'find'
require 'fileutils'
diff --git a/setup/qi_libs_base.rb b/setup/qi_libs_base.rb
index 430ec0c5..ec01af19 100644
--- a/setup/qi_libs_base.rb
+++ b/setup/qi_libs_base.rb
@@ -1,6 +1,4 @@
module Project_details
- require_relative 'sisu_version'
- include SiSUversion
def self.name
'SiSU'
end