git @ Cat's Eye Technologies kinoje / 66e4aff
Add the directory of the input file to POV-Ray's library path. Chris Pressey 5 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
127127 if 'render_command_template' not in config:
128128 render_type = config.get('type', 'povray')
129129 if render_type == 'povray':
130 config['render_command_template'] = "povray -D +I{infile} +O{outfile} +W{width} +H{height} +A"
130 config['render_command_template'] = "povray +L{indir} -D +I{infile} +O{outfile} +W{width} +H{height} +A"
131131 elif render_type == 'svg':
132132 config['render_command_template'] = "inkscape -z -e {outfile} -w {width} -h {height} {infile}"
133133 else:
3232 f.write(self.template.render(context))
3333 fn = os.path.join(self.dirname, self.options.frame_fmt % frame)
3434 cmd = self.config['render_command_template'].format(
35 infile=out_pov, outfile=fn, width=self.options.width, height=self.options.height
35 infile=out_pov, indir=os.path.dirname(self.options.configfile), outfile=fn,
36 width=self.options.width, height=self.options.height
3637 )
3738 self.exe.do_it(cmd)
3839 return fn