<s> import hou <EOL> from anima import logger <EOL> from anima . ui import SET_PYSIDE <EOL> from anima . utils import do_db_setup <EOL> SET_PYSIDE ( ) <EOL> class Executor ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . application = None <EOL> from anima . ui . lib import QtCore <EOL> self . event_loop = QtCore . QEventLoop ( ) <EOL> def exec_ ( self , app , dialog ) : <EOL> self . application = app <EOL> hou . ui . addEventLoopCallback ( self . processEvents ) <EOL> dialog . exec_ ( ) <EOL> def processEvents ( self ) : <EOL> self . event_loop . processEvents ( ) <EOL> self . application . sendPostedEvents ( None , <NUM_LIT:0> ) <EOL> def version_creator ( ) : <EOL> """<STR_LIT>""" <EOL> do_db_setup ( ) <EOL> import logging <EOL> from stalker import log <EOL> log . logging_level = logging . WARNING <EOL> from anima . ui import version_creator <EOL> from anima . env import houdini <EOL> reload ( houdini ) <EOL> reload ( version_creator ) <EOL> h = houdini . Houdini ( ) <EOL> logger . setLevel ( logging . WARNING ) <EOL> if hou . applicationVersion ( ) [ <NUM_LIT:0> ] <= <NUM_LIT> : <EOL> version_creator . UI ( <EOL> environment = h <EOL> ) <EOL> else : <EOL> version_creator . UI ( <EOL> environment = h , <EOL> executor = Executor ( ) <EOL> ) </s>
