Skip to content

Commit

Permalink
absolute pathname for :customize: #77
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 22, 2024
1 parent 180db07 commit a3d8170
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/metanorma/generic/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "fileutils"
require_relative "front"
require "metanorma"
require "pathname"

module Metanorma
module Generic
Expand Down Expand Up @@ -57,6 +58,8 @@ def doctype(node)
end

def read_config_file(path_to_config_file)
(::Pathname.new path_to_config_file).absolute? or
path_to_config_file = File.join(@localdir, path_to_config_file)
Metanorma::Generic.configuration
.set_default_values_from_yaml_file(path_to_config_file)
# reregister Processor to Metanorma with updated values
Expand Down

0 comments on commit a3d8170

Please sign in to comment.