OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7845c4a
)
Getting an absolute location of this file was wrong if it was a synbolic link. This...
author
Daigo Moriwaki
<daigo@debian.org>
Tue, 20 Jan 2015 13:39:05 +0000
(22:39 +0900)
committer
Daigo Moriwaki
<daigo@debian.org>
Tue, 20 Jan 2015 13:39:05 +0000
(22:39 +0900)
mk_rate
patch
|
blob
|
history
diff --git
a/mk_rate
b/mk_rate
index
f2c24c6
..
103988d
100755
(executable)
--- a/
mk_rate
+++ b/
mk_rate
@@
-107,7
+107,8
@@
# * (Rated) players, who played more than $GAMES_LIMIT [15] (rated) games.
#
-$:.unshift(File.dirname(File.expand_path(__FILE__)))
+require 'pathname'
+$:.unshift(File.dirname(Pathname.new(__FILE__).realpath))
require 'utils/csa-filter'
require 'yaml'
require 'time'