Lines Matching refs:os
22 import os
36 self.filename = os.fspath(filename)
55 if self.suftime != time.strftime(self.suffix, time_tuple) or not os.path.exists(
56 os.path.abspath(self.filename) + '.' + self.suftime):
74 self.baseFilename = os.path.abspath(self.filename) + "." + self.suftime
77 with os.fdopen(os.open(self.baseFilename, os.O_WRONLT | os.O_CREAT | os.O_EXCL,
85 log_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "log")
86 if not os.path.exists(log_path):
87 os.makedirs(log_path)
88 tfr_handler = SafeFileHandler(os.path.join(log_path, class_name + ".log"))
106 config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "build_example.json")
108 with os.fdopen(os.open(config_path, os.O_WRONLT | os.O_CREAT | os.O_EXCL,