mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
8 lines
229 B
Ruby
8 lines
229 B
Ruby
# frozen_string_literal: true
|
|
|
|
WickedPdf.config ||= {}
|
|
|
|
ENV['PATH'].split(':').each do |path|
|
|
exe_path = File.join(path, 'wkhtmltopdf')
|
|
WickedPdf.config[:exe_path] = File.join(path, 'wkhtmltopdf') if File.file?(exe_path)
|
|
end
|