Defined %i as 'job' for gerber job files.

This commit is contained in:
Salvador E. Tropea 2020-07-12 15:55:25 -03:00
parent 41de8c032c
commit acf6bedda8
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ class AnyLayerOptions(BaseOptions):
jobfile_writer.AddGbrFile(id, os.path.basename(filename))
if create_job:
job_fn = self.expand_filename(po.gerber_job_file, ext='gbrjob')
job_fn = self.expand_filename(po.gerber_job_file, 'job', 'gbrjob')
jobfile_writer.CreateJobFile(os.path.abspath(os.path.join(output_dir, job_fn)))
def read_vals_from_po(self, po):

View File

@ -22,8 +22,8 @@ class GerberOptions(AnyLayerOptions):
self.create_gerber_job_file = True
""" creates a file with information about all the generated gerbers.
You can use it in gerbview to load all gerbers at once """
self.gerber_job_file = '%f-job.%x'
""" name for the gerber job file """
self.gerber_job_file = '%f-%i.%x'
""" name for the gerber job file (%i='job', %x='gbrjob') """
self.use_gerber_x2_attributes = True
""" use the extended X2 format """
self.use_gerber_net_attributes = True