diff --git a/lib/protodoc.rb b/lib/protodoc.rb index 31311b0..8695707 100644 --- a/lib/protodoc.rb +++ b/lib/protodoc.rb @@ -21,6 +21,7 @@ module Protodoc include Environment def initialize(filename) + filename = File.join(filename.split('/')) @filename = File.expand_path(filename) @template = ERB.new(IO.read(@filename), nil, '%') end