commit/galaxy-central: jmchilton: Toolbox: Watch even empty directories if they are explicitly tool_dir specified.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/36a5b25e0d33/ Changeset: 36a5b25e0d33 User: jmchilton Date: 2015-01-26 00:18:53+00:00 Summary: Toolbox: Watch even empty directories if they are explicitly tool_dir specified. Affected #: 1 file diff -r 31cb0fdae2298b2a7ad882c465fa88ec98082f26 -r 36a5b25e0d33efdaaa0a6abb96468f648ee206f5 lib/galaxy/tools/toolbox/base.py --- a/lib/galaxy/tools/toolbox/base.py +++ b/lib/galaxy/tools/toolbox/base.py @@ -759,9 +759,9 @@ def _load_tooldir_tag_set(self, sub_elem, elems, tool_path, integrated_elems, load_panel_dict): directory = os.path.join( tool_path, sub_elem.attrib.get("dir") ) recursive = string_as_bool( sub_elem.attrib.get("recursive", True) ) - self.__watch_directory( directory, elems, integrated_elems, load_panel_dict, recursive ) + self.__watch_directory( directory, elems, integrated_elems, load_panel_dict, recursive, force_watch=True ) - def __watch_directory( self, directory, elems, integrated_elems, load_panel_dict, recursive): + def __watch_directory( self, directory, elems, integrated_elems, load_panel_dict, recursive, force_watch=False ): def quick_load( tool_file, async=True ): try: @@ -793,7 +793,7 @@ elif name.endswith( ".xml" ): quick_load( child_path, async=False ) tool_loaded = True - if tool_loaded: + if tool_loaded or force_watch: self._tool_watcher.watch_directory( directory, quick_load ) def load_tool( self, config_file, guid=None, repository_id=None, **kwds ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org