def get_asset_version(filename):
    if (filename in _cached_asset_version):
        return _cached_asset_version[filename]
    filepath = ((root_folder if root_folder else '.') + filename)
    if (filename and path.exists(filepath)):
        with open(filepath, 'rb') as file:
            digest = md5(file.read()).hexdigest()
            _cached_asset_version[filename] = digest
            return digest
    return None
def get_asset_version(filename):
    if (filename in _cached_asset_version):
        return _cached_asset_version[filename]
    filepath = ((root_folder if root_folder else '.') + filename)
    if (filename and path.exists(filepath)):
        with open(filepath, 'rb') as file:
            digest = md5(file.read()).hexdigest()
            _cached_asset_version[filename] = digest
            return digest
    return None