MCPcopy Create free account
hub / github.com/PyImageSearch/imutils / __init__

Method __init__

imutils/io/tempfile.py:6–9  ·  view source on GitHub ↗
(self, basePath="./", ext=".jpg")

Source from the content-addressed store, hash-verified

4
5class TempFile:
6 def __init__(self, basePath="./", ext=".jpg"):
7 # construct the file path
8 self.path = "{base_path}/{rand}{ext}".format(base_path=basePath, rand=str(uuid.uuid4()),
9 ext=ext)
10
11 def cleanup(self):
12 # remove the file

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected