If you're using Python 3.4, there is the brand new higher-level pathlib
module which allows you to conveniently call pathlib.Path.cwd()
to get a Path
object representing your current working directory, along with many other new features.
More info on this new API can be found here.