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

posix.getcwd

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


Import

import posix
from posix import getcwd

Signature & Overview

posix.getcwd()

Return a unicode string representing the current working directory.

Usage

import os

assert len(os.getcwd()) > 0

Gotchas

REPL Inspect

from posix import getcwd
help(getcwd)

Linked from

Related notes