FAQ
Ha! You;re right -- but is there a way to get it without the filename
appended at the end?
On May 24, 11:52?am, Tim Golden wrote:
On 24/05/2011 16:36, RVince wrote:

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 !
You're going to kick yourself:

f.name

TJG

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 11 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedMay 24, '11 at 3:36p
activeMay 25, '11 at 11:05a
posts11
users8
websitepython.org

People

Translate

site design / logo © 2021 Grokbase