Use pathname for load DIR.

This commit is contained in:
Glenn Y. Rolland 2014-06-16 09:21:36 +02:00
parent 11c5632c21
commit 3eef8842e4

View file

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