ChangeDirectory

class ChangeDirectory(path, chdir, getcwd)[source]

Bases: object

Context manager for temporarily changing current working directory.

Parameters:
  • path (str) – new path name

  • _os – module with getcwd and chdir functions