Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
        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()
Exemple #4
0
            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()