Skip to content

Commit

Permalink
package symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 12, 2019
1 parent 1563269 commit b52f3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ macro snoopiBot(packageName::String, snoopScript)
# by default run "runtests"
# = :(using MatLang; include(joinpath(dirname(dirname(pathof(MatLang))), "test","runtests.jl")); )


################################################################
package = Symbol(packageName)
packagePath = joinpath(pwd(),"src","$packageName.jl")

quote
Expand All @@ -126,7 +128,7 @@ macro snoopiBot(packageName::String, snoopScript)
################################################################
### Parse the compiles and generate precompilation scripts
pc = SnoopCompile.parcel(data)
onlypackage = Dict(package => sort(pc[package]))
onlypackage = Dict($(esc(package)) => sort(pc[$(esc(package))]))
SnoopCompile.write("$(pwd())/precompile",onlypackage)
################################################################
cd(rootPath)
Expand Down

0 comments on commit b52f3ba

Please sign in to comment.