Cleanup: move constants out of Object.
This commit is contained in:
parent
3cf161791c
commit
7cd2600267
3 changed files with 3 additions and 8 deletions
|
@ -3,10 +3,6 @@
|
||||||
#$DEBUG = true
|
#$DEBUG = true
|
||||||
#$VERBOSE = true
|
#$VERBOSE = true
|
||||||
|
|
||||||
QASIM_INCLUDE_DIR = "lib"
|
|
||||||
QASIM_DATA_DIR = "."
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# external libraries
|
# external libraries
|
||||||
#
|
#
|
||||||
|
|
|
@ -10,10 +10,7 @@ require 'set'
|
||||||
require 'fcntl'
|
require 'fcntl'
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
|
|
||||||
QASIM_INCLUDE_DIR = Pathname.new(File.dirname(__FILE__)).parent + "lib"
|
$:.push "lib"
|
||||||
QASIM_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent + "data"
|
|
||||||
|
|
||||||
$:.push QASIM_INCLUDE_DIR
|
|
||||||
|
|
||||||
require 'qasim'
|
require 'qasim'
|
||||||
require 'qasim/qasim_qrc'
|
require 'qasim/qasim_qrc'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
module Qasim
|
module Qasim
|
||||||
|
APP_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent.parent.parent + "data"
|
||||||
|
|
||||||
APP_ICON_PATH = File.join QASIM_DATA_DIR, "icons"
|
APP_ICON_PATH = File.join QASIM_DATA_DIR, "icons"
|
||||||
|
|
||||||
APP_SYSCONFIG_DIR = "/etc/qasim/maps.d"
|
APP_SYSCONFIG_DIR = "/etc/qasim/maps.d"
|
||||||
|
|
Loading…
Reference in a new issue