summaryrefslogtreecommitdiff
path: root/lib/postrunner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/postrunner.rb')
-rw-r--r--lib/postrunner.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/postrunner.rb b/lib/postrunner.rb
index 8e79a74..3aeff83 100644
--- a/lib/postrunner.rb
+++ b/lib/postrunner.rb
@@ -10,7 +10,11 @@
# published by the Free Software Foundation.
#
-$:.unshift(File.join(File.dirname(__FILE__), '..', '..', 'fit4ruby', 'lib'))
+# Some dependencies may not be installed as Ruby Gems but as local sources.
+# Add them to the LOAD_PATH.
+%w( fit4ruby perobs ).each do |lib_dir|
+ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', lib_dir, 'lib'))
+end
$:.unshift(File.dirname(__FILE__))
require 'postrunner/Main'