Tournament table: change in accordance with the current directory structure.

This commit is contained in:
vonavi
2013-11-21 19:39:38 +02:00
parent 130b6b555e
commit 939af1f8c5
2 changed files with 13 additions and 10 deletions

View File

@@ -5,10 +5,12 @@ module LORChess
require 'yaml'
DATADIR='2013/3-autumn'
dir = File.dirname(__FILE__)
players_yaml = File.expand_path('../../autumn2013/players.yml', dir)
players_yaml = File.expand_path("../../#{DATADIR}/players.yml", dir)
@@db_players = YAML.load_file players_yaml
results_yaml = File.expand_path('../../autumn2013/results.yml', dir)
results_yaml = File.expand_path("../../#{DATADIR}/results.yml", dir)
@@db_results = YAML.load_file results_yaml
@@dim = @@db_players.length