How to get directory name

Get directory name


import sys, os

pathname = os.path.dirname('.')




















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module