From d6857e531357f5a343584d795c95bc42d7f333b6 Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Mon, 24 Jul 2023 10:19:30 +0200 Subject: [PATCH] only check dir if options are set --- smartvisu/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smartvisu/__init__.py b/smartvisu/__init__.py index df8cf2a63..e83c4775e 100755 --- a/smartvisu/__init__.py +++ b/smartvisu/__init__.py @@ -46,7 +46,7 @@ class SmartVisu(SmartPlugin): - PLUGIN_VERSION="1.8.11" + PLUGIN_VERSION="1.8.12" ALLOW_MULTIINSTANCE = True visu_definition = None @@ -125,7 +125,8 @@ def __init__(self, sh): def run(self): self.alive = True - if self.smartvisu_dir != '': + # skip directory handling if generate pages and handle_widgets are disabled + if self.smartvisu_dir != '' and (self._generate_pages or self._handle_widgets): if not os.path.isdir(os.path.join(self.smartvisu_dir, 'pages')): self.logger.error("Could not find valid smartVISU directory: {}".format(self.smartvisu_dir)) else: