Skip to content

Commit dc22d50

Browse files
authored
Make animals const
I can change this path at build time using static compilation
1 parent 43b4b85 commit dc22d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MacroTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ include("examples/threading.jl")
1717
include("examples/forward.jl")
1818

1919
const animals = Symbol[]
20+
const animals_file = joinpath(dirname(@__FILE__), "..", "animals.txt")
2021

2122
function __init__()
22-
animals_file = joinpath(dirname(@__FILE__), "..", "animals.txt")
2323
_animals = split(read(animals_file, String))
2424
resize!(animals, length(_animals))
2525
animals .= Symbol.(lowercase.(_animals))

0 commit comments

Comments
 (0)