Permalink
Browse files

Fix nickmap file lookup.

  • Loading branch information...
1 parent cfb58dd commit d457bd8d667d56f9cfe073a50cf1890ceea79eab @greensnark greensnark committed Jan 5, 2013
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/helper.rb
  2. +1 −1 test-henzell.pl
View
@@ -5,6 +5,7 @@
require 'command_context'
require 'yaml'
require 'fileutils'
+require 'henzell/config'
# Directory containing player directories that contain morgues.
DGL_MORGUE_DIR = '/var/www/crawl/rawdata'
@@ -26,7 +27,9 @@ def regex_paths(regex_path_mappings)
SHORT_DATEFORMAT = '%Y%m%d%H%M%S'
NICK_ALIASES = { }
-NICKMAP_FILE = ENV['HENZELL_TEST'] ? 'dat/nicks-test.map' : 'dat/nicks.map'
+NICKMAP_FILE = Henzell::Config.file_path(
+ ENV['HENZELL_TEST'] ? 'dat/nicks-test.map' : 'dat/nicks.map')
+
$nicks_loaded = false
def munge_game(game)
View
@@ -8,7 +8,7 @@
$ENV{HENZELL_SQL_QUERIES} = 'y';
$ENV{HENZELL_TEST} = 'y';
-$ENV{RUBYOPT} = '-rubygems';
+$ENV{RUBYOPT} = '-rubygems -Isrc';
require 'sqllog.pl';

0 comments on commit d457bd8

Please sign in to comment.