(env=None)
| 51 | |
| 52 | |
| 53 | def revert_tmp_dir(env=None): |
| 54 | if not env: |
| 55 | env = os.environ |
| 56 | |
| 57 | if _startup_tmp_dir_set: |
| 58 | if _startup_tmp_dir is not None: |
| 59 | env['TMPDIR'] = _startup_tmp_dir |
| 60 | else: |
| 61 | env.pop('TMPDIR', None) |
| 62 | logger.debug('Reset back TMPDIR=%s', env.get('TMPDIR')) |
| 63 | |
| 64 | |
| 65 | def temp_path(path): |
no test coverage detected