mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
added get_openpype_icon_filepath and get_openpype_splash_filepath functions
This commit is contained in:
parent
294c7b05e5
commit
d69f94b849
1 changed files with 16 additions and 8 deletions
|
|
@ -30,23 +30,31 @@ def get_liberation_font_path(bold=False, italic=False):
|
|||
return font_path
|
||||
|
||||
|
||||
def pype_icon_filepath(debug=None):
|
||||
if debug is None:
|
||||
debug = bool(os.getenv("OPENPYPE_DEV"))
|
||||
def get_openpype_icon_filepath(staging=None):
|
||||
if staging is None:
|
||||
staging = bool(os.getenv("OPENPYPE_DEV"))
|
||||
|
||||
if debug:
|
||||
if staging:
|
||||
icon_file_name = "openpype_icon_staging.png"
|
||||
else:
|
||||
icon_file_name = "openpype_icon.png"
|
||||
return get_resource("icons", icon_file_name)
|
||||
|
||||
|
||||
def pype_splash_filepath(debug=None):
|
||||
if debug is None:
|
||||
debug = bool(os.getenv("OPENPYPE_DEV"))
|
||||
def get_openpype_splash_filepath(staging=None):
|
||||
if staging is None:
|
||||
staging = bool(os.getenv("OPENPYPE_DEV"))
|
||||
|
||||
if debug:
|
||||
if staging:
|
||||
splash_file_name = "openpype_splash_staging.png"
|
||||
else:
|
||||
splash_file_name = "openpype_splash.png"
|
||||
return get_resource("icons", splash_file_name)
|
||||
|
||||
|
||||
def pype_icon_filepath(staging=None):
|
||||
return get_openpype_icon_filepath(staging)
|
||||
|
||||
|
||||
def pype_splash_filepath(staging=None):
|
||||
return get_openpype_splash_filepath(staging)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue