Skip to content

Commit ab1bb26

Browse files
committed
use File.expand_path instead of File.join
1 parent dc57601 commit ab1bb26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module CodeRay
127127

128128
$CODERAY_DEBUG ||= false
129129

130-
CODERAY_PATH = File.join File.dirname(__FILE__), 'coderay'
130+
CODERAY_PATH = File.expand_path('../coderay', __FILE__)
131131

132132
# Assuming the path is a subpath of lib/coderay/
133133
def self.coderay_path *path

0 commit comments

Comments
 (0)