# Write temporary plc-config file
# XX use plc instance to copy file
tmpfconf, tmpfname = tempfile.mkstemp(".config","plc-config-tty", '/usr/tmp/')
# Write temporary plc-config file
# XX use plc instance to copy file
tmpfconf, tmpfname = tempfile.mkstemp(".config","plc-config-tty", '/usr/tmp/')
if self.config.verbose:
utils.header("generating temporary config file %(tmpfname)s"%locals())
for (option, value) in plc_options:
os.write(tmpfconf, 'e %s\n%s\n' % (option, value))
os.write(tmpfconf,'w\nq\n')
os.close(tmpfconf)
if self.config.verbose:
utils.header("generating temporary config file %(tmpfname)s"%locals())
for (option, value) in plc_options:
os.write(tmpfconf, 'e %s\n%s\n' % (option, value))
os.write(tmpfconf,'w\nq\n')
os.close(tmpfconf)