hpcugent / vsc-base

Basic Python libraries used by UGent's HPC group
Other
14 stars 51 forks source link

Add TemporaryDirectory to py2vs3 #312

Closed MatthiasCoppens closed 3 years ago

MatthiasCoppens commented 3 years ago

This PR ports the class TemporaryDirectory to py2. This class creates a temporary directory on initialisation, which gets cleaned up automatically when the object goes out of scope. This is used in jobcli: https://github.com/hpcugent/jobcli/pull/232/files#r604656426.