diff --git a/kibot/out_base.py b/kibot/out_base.py index a0158911..88ab059b 100644 --- a/kibot/out_base.py +++ b/kibot/out_base.py @@ -52,6 +52,9 @@ class BaseOutput(RegOutput): Use the boolean true value to disable the output you are extending """ self.output_id = '' """ Text to use for the %I expansion content. To differentiate variations of this output """ + self.category = Optionable + """ [string|list(string)=''] The category for this output. If not specified an internally defined category is used. + Categories looks like file system paths, i.e. PCB/fabrication/gerber """ if GS.global_dir: self.dir = GS.global_dir self._sch_related = False @@ -122,6 +125,9 @@ class BaseOutput(RegOutput): self.options = self.options() # Configure them using an empty tree self.options.config(self) + self.category = self.force_list(self.category) + if not self.category: + self.category = self._category def expand_dirname(self, out_dir): return self.options.expand_filename_both(out_dir, is_sch=self._sch_related) diff --git a/kibot/out_navigate_results.py b/kibot/out_navigate_results.py index bd06e965..d9fefa43 100644 --- a/kibot/out_navigate_results.py +++ b/kibot/out_navigate_results.py @@ -201,7 +201,6 @@ class Navigate_ResultsOptions(BaseOptions): for o in RegOutput.get_outputs(): # Is this one that can be used to represent it? if o.type in outs_rep: - config_output(o) out_dir = get_output_dir(o.dir, o, dry=True) targets = o.get_targets(out_dir) # Look the output targets @@ -330,6 +329,8 @@ class Navigate_ResultsOptions(BaseOptions): acc = 0 f.write('
| {} | \n'.format(pname, self.get_image_for_cat(cat))) acc += 1 f.write('