Skip to content

Commit

Permalink
[Bridges] fix including files which are not .jl files (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jan 28, 2025
1 parent f8da4c2 commit f09e159
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Bridges/Constraint/Constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ include("set_map.jl")
include("single_bridge_optimizer.jl")

for filename in readdir(joinpath(@__DIR__, "bridges"); join = true)
include(filename)
if endswith(filename, ".jl")
include(filename)
end
end

"""
Expand Down
4 changes: 3 additions & 1 deletion src/Bridges/Objective/Objective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ include("map.jl")
include("single_bridge_optimizer.jl")

for filename in readdir(joinpath(@__DIR__, "bridges"); join = true)
include(filename)
if endswith(filename, ".jl")
include(filename)
end
end

"""
Expand Down
4 changes: 3 additions & 1 deletion src/Bridges/Variable/Variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ include("set_map.jl")
include("single_bridge_optimizer.jl")

for filename in readdir(joinpath(@__DIR__, "bridges"); join = true)
include(filename)
if endswith(filename, ".jl")
include(filename)
end
end

"""
Expand Down

0 comments on commit f09e159

Please sign in to comment.