Asset module

In the process of transitioning to the concept of an “asset” for use within the project module.

class vsuite.asset.Asset(name, relpath, file_extension, project_path)

Represent a category of vsuite assets

Parameters:
  • relpath (str) – path to assset directory relative to .vsuite
  • file_extension (str) – file extension of assets
  • project_path (str) – path to project
abspath()

Get absolute path to asset

Parameters:project_path (str) – absolute path to project
Returns:absolute path to asset
Return type:str
abspaths()

Paths of available assets

Get absolute paths of asset files in first level of asset directory

Returns:file paths
Return type:tuple
files()

Available asset files

Get asset filenames in first level of asset directory

Returns:asset filenames
Return type:tuple
print_files()

Print asset files, newline delimitedfile names

relpath_pwd()

Get path to asset relative to current directory

Parameters:project_dir (str) – absolute path to project directory
Returns:relative path to asset
Return type:str