Lines Matching refs:path
34 if os.path.exists(self.monitor_templates_dir) == True:
42 if os.path.exists(kernel_path) == True:
46 if os.path.exists("/usr/share/dot2/dot2k_templates/") == True:
53 def __open_file(self, path):
55 fd = open(path)
57 raise Exception("Cannot open the file: %s" % path)
149 path = "%s/%s" % (self.name, file_name)
151 file = open(path, 'w')
155 print("Fail creating file: %s" % path)
162 path = "%s/%s" % (self.name, "main.c")
163 if os.path.exists(path) == False:
173 path = "%s.c" % self.name
174 self.__create_file(path, main_c)
176 path = "%s.h" % self.name
177 self.__create_file(path, model_h)