def _OnStart(self): showHelp = False for helpOption in ("-h", "--help"): if helpOption in sys.argv: showHelp = True sys.argv.remove(helpOption) from photofilmstrip.cli.Main import main return main(showHelp)
for helpOption in ("-h", "--help"): if helpOption in sys.argv: showHelp = True sys.argv.remove(helpOption) from photofilmstrip.cli.Main import main return main(showHelp) def main(): cliApp = CliApp() # import hotshot # prof = hotshot.Profile("pfs.prof") # exitCode = prof.runcall(cliApp.Start) # prof.close() # import hotshot.stats # stats = hotshot.stats.load("pfs.prof") # stats.strip_dirs() # stats.sort_stats('time', 'calls') # stats.print_stats(50) exitCode = cliApp.Start() sys.exit(exitCode) if __name__ == "__main__": main()
if helpOption in sys.argv: showHelp = True sys.argv.remove(helpOption) from photofilmstrip.cli.Main import main return main(showHelp) def main(): cliApp = CliApp() # import hotshot # prof = hotshot.Profile("pfs.prof") # exitCode = prof.runcall(cliApp.Start) # prof.close() # import hotshot.stats # stats = hotshot.stats.load("pfs.prof") # stats.strip_dirs() # stats.sort_stats('time', 'calls') # stats.print_stats(50) exitCode = cliApp.Start() sys.exit(exitCode) if __name__ == "__main__": main()