Lines Matching defs:os
28 import os
50 os.makedirs(os.path.dirname(self.config), exist_ok=True)
53 os.environ['SYSTEMD_LOG_TARGET'] = 'journal'
58 if os.path.exists(p):
73 if os.path.exists(self.config):
74 os.unlink(self.config)
178 if os.path.islink('/etc/resolv.conf'):
249 self.dnsmasq_log = os.path.join(self.workdir, 'dnsmasq.log')
250 lease_file = os.path.join(self.workdir, 'dnsmasq.leases')
293 self.addCleanup(os.remove, script)
294 with os.fdopen(fd, 'w+') as f:
330 os.fchmod(fd, 0o755)