Skip to content
Snippets Groups Projects
Commit 9c27d756 authored by akiraohgaki's avatar akiraohgaki
Browse files

main function

parent 043043d7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment