shogi-server source
Révision | 7353c183ca018cacf980a191bf188549a290fbef (tree) |
---|---|
l'heure | 2015-01-20 22:39:05 |
Auteur | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Getting an absolute location of this file was wrong if it was a synbolic link. This issue has been addressed.
@@ -107,7 +107,8 @@ | ||
107 | 107 | # * (Rated) players, who played more than $GAMES_LIMIT [15] (rated) games. |
108 | 108 | # |
109 | 109 | |
110 | -$:.unshift(File.dirname(File.expand_path(__FILE__))) | |
110 | +require 'pathname' | |
111 | +$:.unshift(File.dirname(Pathname.new(__FILE__).realpath)) | |
111 | 112 | require 'utils/csa-filter' |
112 | 113 | require 'yaml' |
113 | 114 | require 'time' |