mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix args conditions
This commit is contained in:
parent
73f2981987
commit
a14662bcce
1 changed files with 14 additions and 2 deletions
|
|
@ -395,8 +395,14 @@ class OpenPypeVersion(semver.VersionInfo):
|
|||
production = True
|
||||
staging = True
|
||||
|
||||
elif production is None and not staging:
|
||||
production = True
|
||||
|
||||
elif staging is None and not production:
|
||||
staging = True
|
||||
|
||||
# Just return empty output if both are disabled
|
||||
elif not production and not staging:
|
||||
if not production and not staging:
|
||||
return []
|
||||
|
||||
dir_to_search = Path(user_data_dir("openpype", "pypeclub"))
|
||||
|
|
@ -430,8 +436,14 @@ class OpenPypeVersion(semver.VersionInfo):
|
|||
production = True
|
||||
staging = True
|
||||
|
||||
elif production is None and not staging:
|
||||
production = True
|
||||
|
||||
elif staging is None and not production:
|
||||
staging = True
|
||||
|
||||
# Just return empty output if both are disabled
|
||||
elif not production and not staging:
|
||||
if not production and not staging:
|
||||
return []
|
||||
|
||||
dir_to_search = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue