From 3eef8842e40e3f9eca18d944ecec084638c3decc Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 16 Jun 2014 09:21:36 +0200 Subject: [PATCH] Use pathname for load DIR. --- bin/qasim-gui.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/qasim-gui.rb b/bin/qasim-gui.rb index a3925c5..74fc843 100755 --- a/bin/qasim-gui.rb +++ b/bin/qasim-gui.rb @@ -10,9 +10,10 @@ $VERBOSE = true require 'pp' require 'set' require 'fcntl' +require 'pathname' -QASIM_INCLUDE_DIR = "lib" -QASIM_DATA_DIR = "." +QASIM_INCLUDE_DIR = Pathname.new(File.dirname(__FILE__)).parent + "lib" +QASIM_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent $:.push QASIM_INCLUDE_DIR