Exemple #1
0
def resource():
    """
    :rtype: studioqt.Resource
    """
    global _resource
    if not _resource:
        _resource = studioqt.Resource(dirname=RESOURCE_DIRNAME)
    return _resource
Exemple #2
0
def resource():
    """
    Return a resource object for getting content from the resource folder.

    :rtype: studioqt.Resource
    """
    global _resource

    if not _resource:
        _resource = studioqt.Resource(dirname=RESOURCE_PATH)

    return _resource