From fd13b16ba823bcd7b6f9c7163e7e75585855d33f Mon Sep 17 00:00:00 2001 From: jwansek Date: Thu, 28 Apr 2022 20:11:13 +0100 Subject: Updated readme and docs --- Smarker/smarker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Smarker/smarker.py') diff --git a/Smarker/smarker.py b/Smarker/smarker.py index 8b8527e..39c22e6 100644 --- a/Smarker/smarker.py +++ b/Smarker/smarker.py @@ -73,7 +73,7 @@ def main(**kwargs): # input("\n\n[tempdir: %s] Press any key to close..." % tempdir) -if __name__ == "__main__": +def getparser(): config = configparser.ConfigParser() config.read(os.path.join(os.path.split(__file__)[0], "smarker.conf")) @@ -127,6 +127,11 @@ if __name__ == "__main__": except KeyError: pass + return parser + +if __name__ == "__main__": + parser = getparser() + args = vars(parser.parse_args()) main(**args) \ No newline at end of file -- cgit v1.2.3