(dirname)
Wrapper for resource_listdir.
Wrapper for resource_listdir.
Wrapper for resource_listdir .
def listdir(dirname):
    """Wrapper for resource_listdir."""
    try:
        return pkg_resources.resource_listdir(__name__, dirname)
    except NotImplementedError as e:
        # this happens with cx_Freeze packages now
        # as the global ResourceManager is a NullProvider
        # not clear why but this works around
        logging.debug('working around pkg_resources error: %s', e)
        return os.listdir(os.path.join(os.path.dirname(__file__), dirname))
def listdir ( dirname ) : try : return pkg_resources . resource_listdir ( __name__ , dirname ) except NotImplementedError as e : # this happens with cx_Freeze packages now # as the global ResourceManager is a NullProvider # not clear why but this works around logging . debug ( 'working around pkg_resources error: %s' , e ) return os . listdir ( os . path . join ( os . path . dirname ( __file__ ) , dirname ) )