Temporary environment module

class rebasehelper.temporary_environment.TemporaryEnvironment(exit_callback=None)[source]

Class representing a temporary environment (directory) that can be used as a workspace.

Works as a context manager.

TEMPDIR: str = 'TEMPDIR'
env()[source]

Gets a copy of _env dictionary.

Returns:

Copy of _env dictionary.

Return type:

dict

path()[source]

Gets the path to the temporary environment.

Returns:

Absolute path to the temporary environment.

Return type:

str