On this page
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
- Import via
os.getcwd()orPath.cwd().
REPL Inspect
from posix import getcwd
help(getcwd)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/get_terminal_size Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/getcwdb Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib