mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +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
|