os.getcwd

The os.getcwd function gets the current working directory.

cwd = os.getcwd()

Parameters

None.

Return Value

The current working directory.