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