Skip to content

Commit

Permalink
added create_masteritem_file to directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Jul 27, 2023
1 parent 9fc9ac8 commit cc41c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartvisu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def __init__(self, sh):

def run(self):
self.alive = True
# skip directory handling if generate pages and handle_widgets are disabled
if self.smartvisu_dir != '' and (self._generate_pages or self._handle_widgets):
# skip directory handling if all relevant handling options are disabled
if self.smartvisu_dir != '' and (self._generate_pages or self._handle_widgets or self._create_masteritem_file):
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 cc41c4d

Please sign in to comment.