obtener wd en python
import os
path = os.getcwd()
print(path)
# /Users/mbp/Documents/my-project/python-snippets/notebook
print(type(path))
# <class 'str'>
obtener directorio de trabajo python
import os
os.getcwd()
directorio de trabajo python
import os
cwd = os.getcwd()
python obtener directorio actual
import os
print(os.getcwd())
os obtener directorio actual
import os
#Get Current working Directory
currentDirectory = os.getcwd()
#Change the Current working Directory
os.chdir('/home/varun')
obtener el directorio de trabajo actual python
# print current working directory in python
import os
cwd = os.getcwd()
print(cwd)