From d07c85aceeb1926f0076f4af95f41acc4425aa2e Mon Sep 17 00:00:00 2001 From: John Hartley Date: Sat, 17 Aug 2019 11:54:52 +0100 Subject: [PATCH] explicitly set filepaths --- gprMax/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gprMax/config.py b/gprMax/config.py index e50b452a..b39075e4 100644 --- a/gprMax/config.py +++ b/gprMax/config.py @@ -204,6 +204,14 @@ class SimulationConfig: else: self.input_file_path = Path(self.args.inputfile) + def set_output_file_path(self): + # output file can be provided by the user. if they havent provided None + # use the inputfilefile path instead + if self.args.outputfile: + self.output_file_path = Path(self.args.outputfile) + else: + self.output_file_path = Path(self.args.inputfile) + def create_simulation_config(args): sc = SimulationConfig(args)