dynare/tests/julia/rbc/test3.jl

22 lines
496 B
Julia

# Modification of the path (for packages). Should be done in ~/.juliarc.jl with a fixed path instead.
if isempty(findin([abspath("../../../julia")], LOAD_PATH))
unshift!(LOAD_PATH, abspath("../../../julia"))
end
# Load Dynare package
importall Dynare
# Compile the rbc.mod file -> produce a module with the model definition.
@dynare "rbc1.mod" "rbc2.mod"
# The previous command is equivalent to:
#
# @compile "rbc1.mod"
# using rbc1
print(rbc1.model_.fname)
print(rbc2.model_.fname)