From 9c27d756a226a23c59bd65a9e074aa003860a36a Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Tue, 5 Jul 2016 01:20:35 +0900 Subject: [PATCH] main function --- src/xdgurl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdgurl.py b/src/xdgurl.py index 34656c0..e3c97b1 100644 --- a/src/xdgurl.py +++ b/src/xdgurl.py @@ -310,7 +310,7 @@ class XdgUrlApp(Tkinter.Frame): sys.exit() ''' -if __name__ == '__main__': +def main(): if len(sys.argv) > 1: """ window = Tkinter.Tk() @@ -345,3 +345,6 @@ if __name__ == '__main__': else: print('xdgurl "XDG-URL"') sys.exit() + +if __name__ == '__main__': + main() -- GitLab