Bases: astropy.config.paths._SetTempPath
Context manager to set a temporary path for the Astropy config, primarily for use with testing.
If the path set by this context manager does not already exist it will be created, if possible.
This may also be used as a decorator on a function to set the config path just within that function.
Parameters: | path : str, optional
delete : bool, optional
|
---|