make prelaunch hook not critical

This commit is contained in:
iLLiCiTiT 2021-03-26 13:03:30 +01:00
parent 5544f93310
commit 6520dd1b36

View file

@ -20,6 +20,16 @@ class InstallPySideToBlender(PreLaunchHook):
platforms = ["windows"]
def execute(self):
# Prelaunch hook is not crutial
try:
self.inner_execute()
except Exception:
self.log.warning(
"Processing of {} crashed.".format(self.__class__.__name__),
exc_info=True
)
def inner_execute(self):
# Get blender's python directory
executable = self.launch_context.executable.executable_path
# Blender installation contain subfolder named with it's version where