lib/foreman/export/base.rb in foreman-0.33.0 vs lib/foreman/export/base.rb in foreman-0.33.1

- old
+ new

@@ -24,10 +24,10 @@ end def export_template(exporter, file, template_root) if template_root && File.exist?(file_path = File.join(template_root, file)) File.read(file_path) - elsif File.exist?(file_path = File.join("~/.foreman/templates", file)) + elsif File.exist?(file_path = File.expand_path(File.join("~/.foreman/templates", file))) File.read(file_path) else File.read(File.expand_path("../../../../data/export/#{exporter}/#{file}", __FILE__)) end end