Skip to content
Snippets Groups Projects
Commit 0effbb07 authored by Tamas Simon's avatar Tamas Simon
Browse files

Accept also str as model file input

parent a5470389
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,9 @@ from .dynare_context import Context
logger = logging.getLogger("dynare.dynare")
def dynare(model: Path) -> Context:
def dynare(model: str | Path) -> Context:
if isinstance(model, str):
model = Path(model)
jl.seval("using Serialization")
jl.seval("using Dynare")
jl.seval(f'@dynare "{model.resolve()}"')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment