Create a DataSource with a local path at destpath.
(self, destpath=os.curdir)
| 244 | """ |
| 245 | |
| 246 | def __init__(self, destpath=os.curdir): |
| 247 | """Create a DataSource with a local path at destpath.""" |
| 248 | if destpath: |
| 249 | self._destpath = os.path.abspath(destpath) |
| 250 | self._istmpdest = False |
| 251 | else: |
| 252 | import tempfile # deferring import to improve startup time |
| 253 | self._destpath = tempfile.mkdtemp() |
| 254 | self._istmpdest = True |
| 255 | |
| 256 | def __del__(self): |
| 257 | # Remove temp directories |