From 8335e76c3b3ce4ac76e41dee2305268373a36437 Mon Sep 17 00:00:00 2001 From: Lizzzka007 <gashchuk2011@mail.ru> Date: Mon, 19 Jun 2023 22:48:20 +0300 Subject: [PATCH] Add check that out != "plotter_lib_pngs/" --- plotter/Args.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plotter/Args.py b/plotter/Args.py index e52ec38..7a58854 100644 --- a/plotter/Args.py +++ b/plotter/Args.py @@ -1,5 +1,11 @@ +import sys + class Args: def __init__(self, filename, func, var=[None], mval=[None], oname=[None], out=[None], ndim = None): + if out == "plotter_lib_pngs/": + print("Output directory name can't be equal to " + out) + sys.exit(-1) + self.filename = filename self.var = var self.mval = mval -- GitLab