def DirName(path):
if path[-<NUM_LIT:1>] == '<STR_LIT:/>':<EOL><INDENT>path = path[:-<NUM_LIT:1>]<EOL><DEDENT>return dirname(path)<EOL>
Utility that gets directory name.  

Sometimes this is the right thing to use intead of ``os.path.dirname``.