<s> import logging <EOL> from anima import logger <EOL> from anima . env . mayaEnv import Maya <EOL> from anima . utils import do_db_setup <EOL> def version_creator ( logging_level = logging . WARNING ) : <EOL> """<STR_LIT>""" <EOL> do_db_setup ( ) <EOL> import pymel <EOL> try : <EOL> if pymel . versions . current ( ) >= pymel . versions . v2014 : <EOL> from anima import ui <EOL> ui . SET_PYSIDE ( ) <EOL> except AttributeError : <EOL> pass <EOL> from anima . ui import version_creator , models <EOL> from anima . env import mayaEnv <EOL> reload ( version_creator ) <EOL> reload ( models ) <EOL> reload ( mayaEnv ) <EOL> m = Maya ( ) <EOL> m . name = "<STR_LIT>" % str ( pymel . versions . current ( ) ) [ <NUM_LIT:0> : <NUM_LIT:4> ] <EOL> logger . setLevel ( logging_level ) <EOL> version_creator . UI ( environment = m ) <EOL> def version_updater ( logging_level = logging . WARNING ) : <EOL> """<STR_LIT>""" <EOL> do_db_setup ( ) <EOL> import pymel <EOL> try : <EOL> if pymel . versions . current ( ) >= pymel . versions . v2014 : <EOL> from anima import ui <EOL> ui . SET_PYSIDE ( ) <EOL> except AttributeError : <EOL> pass <EOL> from anima . ui import version_updater , models <EOL> from anima . env import mayaEnv <EOL> reload ( mayaEnv ) <EOL> reload ( version_updater ) <EOL> reload ( models ) <EOL> m = Maya ( ) <EOL> m . name = "<STR_LIT>" + str ( pymel . versions . current ( ) ) [ <NUM_LIT:0> : <NUM_LIT:4> ] <EOL> logger . setLevel ( logging_level ) <EOL> version_updater . UI ( environment = m ) <EOL> def version_mover ( ) : <EOL> """<STR_LIT:U+0020>""" <EOL> do_db_setup ( ) <EOL> from anima . ui import version_mover as vm <EOL> vm . UI ( ) </s>
