MCPcopy Create free account
hub / github.com/PageBot/PageBot / setPath

Method setPath

Lib/pagebot/elements/image.py:259–264  ·  view source on GitHub ↗

Set the path of the image. If the path exists, the get the real image size and store as self.iw, self.ih.

(self, path)

Source from the content-addressed store, hash-verified

257 getattr(self.imo, filterName)(**params)
258
259 def setPath(self, path):
260 """Set the path of the image. If the path exists, the get the real
261 image size and store as self.iw, self.ih."""
262 self._path = path
263 # Get real size from the file.
264 self.initImageSize()
265
266 def _get_path(self):
267 return self._path

Callers 1

_set_pathMethod · 0.95

Calls 1

initImageSizeMethod · 0.95

Tested by

no test coverage detected