예제 #1
0
파일: __init__.py 프로젝트: mcvine/mcvine
def printcomponentinfo( category, type ):
    '''print info about the component of given category and type
Examples:
  printcomponentinfo( 'monitors', 'E_monitor' )
  '''
    print componentinfo( category, type )
    return
예제 #2
0
def printcomponentinfo(category, type):
    '''print info about the component of given category and type
Examples:
  printcomponentinfo( 'monitors', 'E_monitor' )
  '''
    print componentinfo(category, type)
    return
예제 #3
0
파일: __init__.py 프로젝트: mcvine/mcvine
def componentinfo( category, type ):
    '''obtain component info of given category and type
Examples:
  componentinfo( 'monitors', 'E_monitor' )
  '''    
    import components
    if components.registered( category, type ):
        from components import componentinfo
        info = componentinfo( category, type )
    else:
        from utils.parsers import parseComponent
        path = defaultcomponentpath( category, type )
        info = parseComponent( path )
    return info
예제 #4
0
def componentinfo(category, type):
    '''obtain component info of given category and type
Examples:
  componentinfo( 'monitors', 'E_monitor' )
  '''
    import components
    if components.registered(category, type):
        from components import componentinfo
        info = componentinfo(category, type)
    else:
        from utils.parsers import parseComponent
        path = defaultcomponentpath(category, type)
        info = parseComponent(path)
    return info