mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
Jar path now avoids using a glob, which doesn't work inside a jar
This commit is contained in:
parent
b169814ed9
commit
a3eeda48b2
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
module Rhino
|
module Rhino
|
||||||
JAR_PATH = Dir.glob(
|
JAR_VERSION = '1.7.4'; version = JAR_VERSION.split('.')
|
||||||
File.expand_path('../rhino-*.jar', File.dirname(__FILE__))
|
jar_file = "rhino-#{version[0]}.#{version[1]}R#{version[2]}.jar"
|
||||||
).first
|
JAR_PATH = File.expand_path("../#{jar_file}", File.dirname(__FILE__))
|
||||||
end
|
end
|
Loading…
Reference in a new issue