mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added warning image to resources and utils function to load it
This commit is contained in:
parent
716bd5b492
commit
6a03efa7e6
8 changed files with 36 additions and 53 deletions
|
|
@ -14,6 +14,15 @@ def get_resource(*args):
|
|||
return os.path.normpath(os.path.join(RESOURCES_DIR, *args))
|
||||
|
||||
|
||||
def get_image_path(*args):
|
||||
"""Helper function to get images.
|
||||
|
||||
Args:
|
||||
*<str>: Filepath part items.
|
||||
"""
|
||||
return get_resource("images", *args)
|
||||
|
||||
|
||||
def get_liberation_font_path(bold=False, italic=False):
|
||||
font_name = "LiberationSans"
|
||||
suffix = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue