From 581ba78aff2061b81664f963fdfed003cd714512 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 12 Sep 2019 11:13:04 +0200 Subject: [PATCH] return original plugins if registered host is not set --- pype/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pype/__init__.py b/pype/__init__.py index bcbedc9a90..c2311dd528 100644 --- a/pype/__init__.py +++ b/pype/__init__.py @@ -35,6 +35,8 @@ def patched_discover(superclass): plugins = _original_discover(superclass) # determine host application to use for finding presets + if avalon.registered_host() is None: + return plugins host = avalon.registered_host().__name__.split(".")[-1] # map plugin superclass to preset json. Currenly suppoted is load and