fix app.json file path in ruby driver

main
aninder 8 years ago
parent 1a8f1c1dde
commit e4e3706c24

@ -9,7 +9,7 @@ Encoding.default_external = Encoding::UTF_8
class Wappalyzer class Wappalyzer
def initialize def initialize
@realdir = File.dirname(File.realpath(__FILE__)) @realdir = File.dirname(File.realpath(__FILE__))
file = File.join(@realdir, '..', '..', 'share', 'apps.json') file = File.join(@realdir, 'apps.json')
@json = JSON.parse(IO.read(file)) @json = JSON.parse(IO.read(file))
@categories, @apps = @json['categories'], @json['apps'] @categories, @apps = @json['categories'], @json['apps']
end end

Loading…
Cancel
Save