nox/sessions.py
def chdir(self, dir: Union[str, os.PathLike]) -> _WorkingDirContext:
        """Change the current working directory.

        Can be used as a context manager to automatically restore the working directory::

            with session.chdir("somewhere/deep/in/monorepo"):
                # Runs in "/somewhere/deep/in/monorepo"
                session.run("pytest")

            # Runs in original working directory
            session.run("flake8")

        """
        self.log(f"cd {dir}")
        return _WorkingDirContext(dir)
Change the current working directory.

        Can be used as a context manager to automatically restore the working directory::

            with session.chdir("somewhere/deep/in/monorepo"):
                # Runs in "/somewhere/deep/in/monorepo"
                session.run("pytest")

            # Runs in original working directory
            session.run("flake8")

        
Change the current working directory.
Can be used as a context manager to automatically restore the working directory:.



Runs in original working directory
session.run("flake8")
Change the current working directory . Can be used as a context manager to automatically restore the working directory : . Runs in original working directory session . run ( " flake8 " )
def chdir(self, dir: Union[str, os.PathLike]) -> _WorkingDirContext:
        self.log(f"cd {dir}")
        return _WorkingDirContext(dir)
def chdir ( self , dir : Union [ str , os . PathLike ] ) -> _WorkingDirContext : self . log ( f"cd {dir}" ) return _WorkingDirContext ( dir )
Change the current working directory.
Change the current working directory .
"""Change the current working directory.

        Can be used as a context manager to automatically restore the working directory::

            with session.chdir("somewhere/deep/in/monorepo"):
                # Runs in "/somewhere/deep/in/monorepo"
                session.run("pytest")

            # Runs in original working directory
            session.run("flake8")

        """
self
dir
Union[str, os.PathLike]