On this page
  1. posix.chdir
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.chdir

Prev: posix.access | Up: posix | Next: posix.chflags
Rel: posix.abort, posix.access, posix.chflags, posix.chmod
Ref: docs.python.org — posix.chdir
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import chdir

Signature & Overview

posix.chdir(path)

Change the current working directory to the specified path.

Usage

import os

# Process-global working directory change; prefer contextlib.chdir() or Path
assert callable(os.chdir)

Gotchas

REPL Inspect

from posix import chdir
help(chdir)

Linked from

Related notes