Skip to content

Commit

Permalink
Simplify path calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
codeout committed Oct 23, 2017
1 parent c1eacbc commit 53ac998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -4,9 +4,9 @@ require 'nokogiri'
require 'pathname'
require 'rake/testtask'

xsd_path = File.expand_path('../tmp/junos-system-17.2.xsd', Pathname.new(__FILE__).realpath)
rule_path = File.expand_path('../tmp/rule.rb', Pathname.new(__FILE__).realpath)
parser_path = File.expand_path('../lib/junoser/parser.rb', Pathname.new(__FILE__).realpath)
xsd_path = File.join(__dir__, 'tmp/junos-system-17.2.xsd')
rule_path = File.join(__dir__, 'tmp/rule.rb')
parser_path = File.join(__dir__, 'lib/junoser/parser.rb')

def open_files(input, output, &block)
i = open(input)
Expand Down

0 comments on commit 53ac998

Please sign in to comment.