summaryrefslogtreecommitdiffstats
path: root/Smarker/smarker.py
diff options
context:
space:
mode:
Diffstat (limited to 'Smarker/smarker.py')
-rw-r--r--Smarker/smarker.py7
1 files changed, 6 insertions, 1 deletions
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