setup paths and logger using fullpath(::Settings)

This commit is contained in:
kalmarek 2018-09-09 13:14:07 +02:00
parent b84b23d486
commit 4cd2212554

4
run.jl
View File

@ -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)