Lines Matching refs:os
28 import os
45 self._caddy = os.environ['CADDY'] if 'CADDY' in os.environ else env.caddy
46 self._caddy_dir = os.path.join(env.gen_dir, 'caddy')
47 self._docs_dir = os.path.join(self._caddy_dir, 'docs')
48 self._conf_file = os.path.join(self._caddy_dir, 'Caddyfile')
49 self._error_log = os.path.join(self._caddy_dir, 'caddy.log')
50 self._tmp_dir = os.path.join(self._caddy_dir, 'tmp')
134 if os.path.exists(path):
135 return os.remove(path)
138 if not os.path.exists(path):
139 return os.makedirs(path)
150 with open(os.path.join(self._docs_dir, 'data.json'), 'w') as fd: