From 8278451d7f9bbe43df48b0a99bc122a351f43be2 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 25 Jun 2021 11:14:26 -0400 Subject: added option to read additional config files --- eitControl.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eitControl.py') diff --git a/eitControl.py b/eitControl.py index c9967a6..177a337 100644 --- a/eitControl.py +++ b/eitControl.py @@ -388,8 +388,15 @@ if __name__ == '__main__': parser = argparse.ArgumentParser(description='Perform EIT based experiment.') parser.add_argument('--test', '-t', action='store_true', help='test mode, use fake/dummy hardware') + parser.add_argument('--config-file', '-c', action='append', + help='additional config files, could be used multiple time') args = parser.parse_args() + if args.config_file: + for cf in args.config_file: + print("Reading config file: " + cf) + config.read(cf) + app = QtGui.QApplication([]) pg.setConfigOption('background', 'w') pg.setConfigOption('foreground', 'k') -- cgit v1.2.3