Lines Matching defs:img_path
2398 def img_path(self, ii=None):
2405 return self.img_path()
2411 return os.path.join(self.img_path(), relpath)
2413 def get_img_api_obj(self, cmd_path=None, ii=None, img_path=None):
2416 cmd_path = os.path.join(self.img_path(), "pkg")
2417 if not img_path:
2418 img_path = self.img_path(ii=ii)
2419 res = pkg.client.api.ImageInterface(img_path,
2428 self.ta_dir = os.path.join(self.img_path(), "etc/certs/CA")
2431 with open(os.path.join(self.img_path(), f), "wb") as fh:
2435 img_path=None, **kwargs):
2441 if img_path is None:
2442 img_path = self.img_path()
2445 self.image_destroy(img_path=img_path)
2447 mkdir_eexist_ok(img_path)
2453 full_path = os.path.join(img_path,
2462 self.debug("image_create {0}".format(img_path))
2465 CLIENT_API_VERSION, img_path,
2482 os.mkdir(self.img_path())
2488 cmdline = "{0} {1}".format(cmdline, self.img_path())
2499 src_path = self.img_path()
2504 os.mkdir(self.img_path())
2505 dst_path = self.img_path()
2514 def image_destroy(self, img_path=None):
2516 if img_path is None:
2517 img_path = self.img_path()
2519 if os.path.exists(img_path):
2520 self.debug("image_destroy {0}".format(img_path))
2527 shutil.rmtree(img_path)
3112 img_path = self.img_path()
3116 fpath = os.path.join(img_path, target)
4238 img_path is set to that location). Existing image destruction
4245 self.__imgs_path_backup[ii] = self.img_path()
4247 self.set_img_path(os.path.join(self.img_path(), "bad"))
4255 prefix, repourl, self.img_path())
4258 prefix, repourl, self.img_path())
4267 tmpDir = os.path.join(self.img_path(), s)
4292 cmd_path = os.path.join(self.img_path(), "final")