Skip to content

Commit

Permalink
allow loading compressed files during precompilation (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 authored Jan 22, 2023
1 parent 7ed395e commit 9e836e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ end
function get_decompressor(filter_id::UInt16)
modname, compressorname, decompressorname, = ID_TO_DECOMPRESSOR[filter_id]
invoke_again, m = checked_import(modname)
return invoke_again, @eval $m.$decompressorname()
return invoke_again, getproperty(m,decompressorname)()
end
function get_decompressor(filters::FilterPipeline)
decompressors = Any[]
invoke_again = false
for filter in filters.filters
modname, compressorname, decompressorname, = ID_TO_DECOMPRESSOR[filter.id]
invoke_again, m = checked_import(modname)
push!(decompressors, @eval $m.$decompressorname())
push!(decompressors, getproperty(m,decompressorname)())
end
return invoke_again, decompressors
end
Expand Down

0 comments on commit 9e836e9

Please sign in to comment.