Cleanup: move constants out of Object.

This commit is contained in:
Glenn Y. Rolland 2015-08-09 17:06:08 +02:00
parent 3cf161791c
commit 7cd2600267
3 changed files with 3 additions and 8 deletions

View file

@ -3,10 +3,6 @@
#$DEBUG = true
#$VERBOSE = true
QASIM_INCLUDE_DIR = "lib"
QASIM_DATA_DIR = "."
#
# external libraries
#

View file

@ -10,10 +10,7 @@ require 'set'
require 'fcntl'
require 'pathname'
QASIM_INCLUDE_DIR = Pathname.new(File.dirname(__FILE__)).parent + "lib"
QASIM_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent + "data"
$:.push QASIM_INCLUDE_DIR
$:.push "lib"
require 'qasim'
require 'qasim/qasim_qrc'

View file

@ -1,4 +1,6 @@
module Qasim
APP_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent.parent.parent + "data"
APP_ICON_PATH = File.join QASIM_DATA_DIR, "icons"
APP_SYSCONFIG_DIR = "/etc/qasim/maps.d"