Obtaining a full path name from file

Chris Angelico rosuav at gmail.com
Tue May 24 12:08:16 EDT 2011


On Wed, May 25, 2011 at 2:04 AM, RVince <rvince99 at gmail.com> wrote:
> Ha! You;re right -- but is there a way to get it without the filename
> appended at the end?

Parse the file name with the os.path functions:

http://docs.python.org/library/os.path.html

Chris Angelico



More information about the Python-list mailing list