Lines Matching defs:os
12 import os
41 return os.path.join(tempfile.gettempdir(), name + suffix)
53 d = os.path.dirname(filename)
55 if not os.path.exists(d):
56 os.makedirs(d)
75 for f in os.listdir(path):
77 file_or_dir = os.path.join(path, f)
79 if os.path.isdir(file_or_dir) and not os.path.islink(file_or_dir):
87 os.remove(file_or_dir)
90 os.rmdir(path)
149 open_flags = (os.O_CREAT | os.O_EXCL | os.O_WRONLY)
152 pid_file_fd = os.open(pid_filename, open_flags, open_mode)
153 pid_file = os.fdopen(pid_file_fd, 'w')
162 pid = os.getpid()
218 os.remove(pid_filename)