SaltyCrane Blog — Notes on JavaScript and web development

How to get current working directory in Python

I always forget how to get the current working directory so here it is, mainly for my own reference.
import os 
os.getcwd() 
'C:\\Python25'

Comments