diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-25 11:14:26 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-25 11:14:26 -0400 |
commit | 8278451d7f9bbe43df48b0a99bc122a351f43be2 (patch) | |
tree | e0ce7166ddf0d2fcd97a8b9e07a092e16d7ded60 | |
parent | a2410ae8ede91bede497dd3fb17d758c73be377e (diff) | |
download | pyExpControl-4.0.tar.gz pyExpControl-4.0.zip |
added option to read additional config filesv4.0
-rw-r--r-- | eitControl.py | 7 |
1 files changed, 7 insertions, 0 deletions
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') |