mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
🐛 fix inverted condition
This commit is contained in:
parent
633c7a5cde
commit
b9703f3fda
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ def get_openpype_version_from_path(path, build=True):
|
|||
if not os.path.isfile(version_file):
|
||||
return None
|
||||
# skip if the version is not build
|
||||
if not build and \
|
||||
if build and \
|
||||
(not os.path.isfile(os.path.join(path, "openpype_console")) or
|
||||
not os.path.isfile(os.path.join(path, "openpype_console.exe"))):
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class OpenPypeDeadlinePlugin(DeadlinePlugin):
|
|||
if not os.path.isfile(version_file):
|
||||
return None
|
||||
# skip if the version is not build
|
||||
if not build and \
|
||||
if build and \
|
||||
(not os.path.isfile(os.path.join(path, "openpype_console")) or
|
||||
not os.path.isfile(os.path.join(path, "openpype_console.exe"))): # noqa: E501
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue