clean up argv handling

This commit is contained in:
Doug Hellmann 2012-04-20 22:27:45 -07:00
parent a52e8b639a
commit 6f1f61eb34
1 changed files with 6 additions and 2 deletions

View File

@ -13,6 +13,10 @@ class DemoApp(App):
)
def main():
def main(argv=sys.argv[1:]):
myapp = DemoApp()
myapp.run(sys.argv[1:])
myapp.run(argv)
if __name__ == '__main__':
main(sys.argv[1:])