Skip to content

Commit

Permalink
Update macros.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored May 16, 2024
1 parent ff85110 commit e9d85e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ function _plural_macro_code(model, block, macro_sym)
end

for file in readdir(joinpath(@__DIR__, "macros"))
if occursin(r".jl$", file)
# The check for .jl is necessary because some users may have other files
# like .cov from running code coverage. See JuMP.jl#3746.
if endswith(file, ".jl")
include(joinpath(@__DIR__, "macros", file))
end
end

0 comments on commit e9d85e9

Please sign in to comment.