🐛 fix inverted condition

This commit is contained in:
Ondřej Samohel 2022-08-04 11:43:48 +02:00
parent 633c7a5cde
commit b9703f3fda
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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