##// END OF EJS Templates
add Application.launch_new_instance classmethod...
MinRK -
Show More
@@ -523,6 +523,13 b' class Application(SingletonConfigurable):'
523 self.log.debug("Exiting application: %s" % self.name)
523 self.log.debug("Exiting application: %s" % self.name)
524 sys.exit(exit_status)
524 sys.exit(exit_status)
525
525
526 @classmethod
527 def launch_new_instance(cls, argv=None, **kwargs):
528 """Launch a global instance of this Application"""
529 app = cls.instance(**kwargs)
530 app.initialize(argv)
531 app.start()
532
526 #-----------------------------------------------------------------------------
533 #-----------------------------------------------------------------------------
527 # utility functions, for convenience
534 # utility functions, for convenience
528 #-----------------------------------------------------------------------------
535 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now