Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: appengine/components/tools/gae.py

Issue 2898293002: gae.py: Remove support for MVMs (they are deprecated), simplify code a bit. (Closed)
Patch Set: nit Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The LUCI Authors. All rights reserved. 2 # Copyright 2014 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed under the Apache License, Version 2.0 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 """Wrapper around GAE SDK tools to simplify working with multi module apps.""" 6 """Wrapper around GAE SDK tools to simplify working with multi module apps."""
7 7
8 __version__ = '1.2' 8 __version__ = '1.2'
9 9
10 import atexit 10 import atexit
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 app_dir = find_app_dir(script_dir) 502 app_dir = find_app_dir(script_dir)
503 503
504 # If not symlinked into an app directory, try to discover app root starting 504 # If not symlinked into an app directory, try to discover app root starting
505 # from cwd. 505 # from cwd.
506 app_dir = app_dir or find_app_dir(os.getcwd()) 506 app_dir = app_dir or find_app_dir(os.getcwd())
507 507
508 colorama.init() 508 colorama.init()
509 dispatcher = subcommand.CommandDispatcher(__name__) 509 dispatcher = subcommand.CommandDispatcher(__name__)
510 try: 510 try:
511 return dispatcher.execute(OptionParser(app_dir), args) 511 return dispatcher.execute(OptionParser(app_dir), args)
512 except ( 512 except gae_sdk_utils.Error as e:
513 gae_sdk_utils.BadEnvironmentConfig,
514 gae_sdk_utils.LoginRequiredError) as e:
515 print >> sys.stderr, str(e) 513 print >> sys.stderr, str(e)
516 return 1 514 return 1
517 except KeyboardInterrupt: 515 except KeyboardInterrupt:
518 # Don't dump stack traces on Ctrl+C, it's expected flow in some commands. 516 # Don't dump stack traces on Ctrl+C, it's expected flow in some commands.
519 print >> sys.stderr, '\nInterrupted' 517 print >> sys.stderr, '\nInterrupted'
520 return 1 518 return 1
521 519
522 520
523 if __name__ == '__main__': 521 if __name__ == '__main__':
524 sys.exit(main(sys.argv[1:])) 522 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698