Skip to content

Commit

Permalink
only check dir if options are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Jul 24, 2023
1 parent 4e823f5 commit d6857e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions smartvisu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

class SmartVisu(SmartPlugin):

PLUGIN_VERSION="1.8.11"
PLUGIN_VERSION="1.8.12"
ALLOW_MULTIINSTANCE = True

visu_definition = None
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d6857e5

Please sign in to comment.