Obtaining a full path name from file

RVince rvince99 at gmail.com
Tue May 24 11:36:18 EDT 2011


s = "C:\AciiCsv\Gravity_Test_data\A.csv"
f = open(s,"r")

How do I obtain the full pathname given the File, f? (which should
equal "C:\AciiCsv\Gravity_Test_data"). I've tried all sorts of stuff
and am just not finding it. Any help greatly appreciated !



More information about the Python-list mailing list