How to get current folder

Get current folder


#!/usr/bin/env python# w  ww.  j a v a 2s .com

import os

cwd = os.getcwd()
print cwd

print os.curdir        # String name for current working directory





















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module