How do I find which module exported a given method or variable?
Background:
- I have a script
MyScript.jl
which works - I made
MyModule
that encapsulates some of it’s functions, and call them fromMyScript2.jl
-
MyModule.foo()
throwing “not defined
” error - need to find what imports are missing in
MyModule
Here is the error:
ERROR: UndefVarError: cm not defined
Stacktrace:
[1] foo(::MetaDiGraph{Int64,Float64}, ::Array{Any,1}, ::String) at /home/me/MyModule.jl:200
[2] top-level scope at /home/me/MyScript2.jl:135
Where MyScript2.jl:135
is:
draw(PDF(string(drnm,paths[i].flowsL,"_path.pdf"), 16cm, 16cm), ggp)