Exemplo n.º 1
0
def run():
    # Logging
    Logger.write_to_rotating_file(directories.LOG_FILE, level=30)
    Logger.info("Logging to file: {0}".format(directories.LOG_FILE))
    Logger.info("Current logging level: {0}".format(Logger.get_level(name=1)))

    # Luna initialization
    open_port(lang="python")
    build_luna_menu()
    build_luna_hud()
    add_luna_callbacks()
Exemplo n.º 2
0
Arquivo: menu.py Projeto: Mikfr83/Luna
import pymel.core as pm
from functools import partial

from Luna import Logger
DEBUG_MODE = Logger.get_level() == 10
try:
    from Luna import Config
    from Luna.static import directories
    from Luna.interface.commands import tool_cmds
    from Luna.interface.commands import help_cmds
    from Luna.utils import devFn
    from Luna.utils import fileFn
    from Luna import TestVars
except Exception as e:
    Logger.exception("Failed to import modules", exc_info=e)

if DEBUG_MODE:
    try:
        reload(tool_cmds)
        reload(help_cmds)
        reload(devFn)
        Logger.debug("Menu - reloaded command modules")
    except ImportError:
        Logger.exception("Failed to reload command modules")


def _null_command(*args):
    pass


class MenuUtil: