mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added functions for getting pype icon and pype splash into resources
This commit is contained in:
parent
a2d511a275
commit
52eb6e2280
1 changed files with 22 additions and 0 deletions
|
|
@ -14,3 +14,25 @@ def get_resource(*args):
|
|||
*args
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def pype_icon_filepath(debug=None):
|
||||
if debug is None:
|
||||
debug = bool(os.getenv("PYPE_DEV"))
|
||||
|
||||
if debug:
|
||||
icon_file_name = "pype_icon_dev.png"
|
||||
else:
|
||||
icon_file_name = "pype_icon.png"
|
||||
return get_resource("icons", icon_file_name)
|
||||
|
||||
|
||||
def pype_splash_filepath(debug=None):
|
||||
if debug is None:
|
||||
debug = bool(os.getenv("PYPE_DEV"))
|
||||
|
||||
if debug:
|
||||
splash_file_name = "pype_splash_dev.png"
|
||||
else:
|
||||
splash_file_name = "pype_splash.png"
|
||||
return get_resource("icons", splash_file_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue