From 4cd221255465915e122a23040c9cbee8ec92950a Mon Sep 17 00:00:00 2001 From: kalmarek Date: Sun, 9 Sep 2018 13:14:07 +0200 Subject: [PATCH] setup paths and logger using fullpath(::Settings) --- run.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.jl b/run.jl index 8544a35..41bf8be 100644 --- a/run.jl +++ b/run.jl @@ -100,7 +100,9 @@ solver(tol, iterations) = const Gr = PropertyTGroups.PropertyTGroup(PARSEDARGS) const sett = PropertyT.Settings(PARSEDARGS, Gr, solver(args["tol"], args["iterations"])) + +fullpath = PropertyT.fullpath(sett) isdir(fullpath) || mkpath(fullpath) -logger=setup_logging(PropertyT.filename(fullpath, :fulllog), :fulllog) +setup_logging(PropertyT.filename(fullpath, :fulllog), :fulllog) main(Gr, sett)