INNER CODE UNIT · Python

_touch

jd/pifpaf · pifpaf/drivers/__init__.py:263

    def _touch(self, fname):
        open(fname, 'a').close()
        os.utime(fname, None)

    def template(self, resource, env, dest):
        template = self.template_env.get_template(resource)
        with open(dest, 'w') as f:
            f.write(template.render(**env))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…