Create temp dir which deletes the contents when exit. Parameters ---------- custom_path : str, optional Manually specify the exact temp dir path keep_for_debug : bool Keep temp directory for debugging purposes Returns ------- temp : TempDirectory
(custom_path=None, keep_for_debug=None)
| 182 | |
| 183 | |
| 184 | def tempdir(custom_path=None, keep_for_debug=None): |
| 185 | """Create temp dir which deletes the contents when exit. |
| 186 | |
| 187 | Parameters |
| 188 | ---------- |
| 189 | custom_path : str, optional |
| 190 | Manually specify the exact temp dir path |
| 191 | |
| 192 | keep_for_debug : bool |
| 193 | Keep temp directory for debugging purposes |
| 194 | Returns |
| 195 | ------- |
| 196 | temp : TempDirectory |
| 197 | The temp directory object |
| 198 | """ |
| 199 | return TempDirectory(custom_path=custom_path, keep_for_debug=keep_for_debug) |
| 200 | |
| 201 | |
| 202 | class FileLock: |
searching dependent graphs…