🐛 fix pathlib dir existence check

This commit is contained in:
Ondřej Samohel 2024-06-06 11:08:46 +02:00
parent b72f8d89f0
commit 72dc874168
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -345,7 +345,7 @@ class UEPluginInstallWorker(UEWorker):
uat_path: Path = ue_lib.get_path_to_uat(self.engine_path)
src_plugin_dir = Path(self.env.get("AYON_UNREAL_PLUGIN", ""))
if not os.path.isdir(src_plugin_dir):
if not src_plugin_dir.is_dir():
msg = "Path to the integration plugin is null!"
self.failed.emit(msg, 1)
raise RuntimeError(msg)