Did I find the right examples for you? yes no

All Samples(10)  |  Call(7)  |  Derive(0)  |  Import(3)

src/r/i/Rivets-0.4.1/rivets/assets/processed_asset.py   Rivets(Download)
 
from ..errors import UnserializeError
from ..utils import unique_list
 
class ProcessedAsset(Asset):
	def build_required_assets(self,environment,context):
		include_paths = context.required_paths
		include_paths.append(self.pathname)
		to_include = unique_list(self.resolve_dependencies(environment,include_paths))
		stubbed = unique_list(self.resolve_dependencies(environment,unique_list(context.stubbed_assets)))
			dependency_paths[dep] = True
 
		for path in unique_list(context.dependency_assets):
			if path == str(self.pathname):
				digest = environment.get_file_digest(path)

src/r/i/Rivets-0.4.1/rivets/assets/bundled_asset.py   Rivets(Download)
from asset import Asset
from ..utils import unique_list
from ..errors import UnserializeError
 
class BundledAsset(Asset):
			self.processed_asset = environment.find_asset(pathname,bundle=False)
			self._required_assets = self.processed_asset.required_assets if self.processed_asset else []
			self._dependency_paths = unique_list(self.processed_asset.dependency_paths) if self.processed_asset else []
 
			self.source = ""

src/r/i/Rivets-0.4.1/rivets/assets/asset_attributes.py   Rivets(Download)
import regex as re
import os
 
from ..extensions import get_extension
from ..utils import unique_list
		except ValueError:
			exts = exts
		return [ext for ext in unique_list(exts) if self.environment.engines[ext]]
 
	@property
	def extensions(self):
		basename = os.path.basename(self.path)
		extensions = self._extensions
		extensions.extend(re.findall(r"""\.[^.]+""",basename))
		return unique_list(extensions)