Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6149

Re: Obtaining a full path name from file

References <6af58349-43d3-4132-ab0a-a072852e6f3a@g12g2000yqd.googlegroups.com> <mailman.2020.1306252356.9059.python-list@python.org> <09bb028b-7050-4b8e-99b0-722af11918f7@y19g2000yqk.googlegroups.com>
Date 2011-05-25 02:08 +1000
Subject Re: Obtaining a full path name from file
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2021.1306253299.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, May 25, 2011 at 2:04 AM, RVince <rvince99@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Obtaining a full path name from file RVince <rvince99@gmail.com> - 2011-05-24 08:36 -0700
  Re: Obtaining a full path name from file Tim Golden <mail@timgolden.me.uk> - 2011-05-24 16:52 +0100
    Re: Obtaining a full path name from file RVince <rvince99@gmail.com> - 2011-05-24 09:04 -0700
      Re: Obtaining a full path name from file Chris Angelico <rosuav@gmail.com> - 2011-05-25 02:08 +1000
      Re: Obtaining a full path name from file Tim Golden <mail@timgolden.me.uk> - 2011-05-24 17:10 +0100
      Re: Obtaining a full path name from file Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-05-24 18:13 +0200
    Re: Obtaining a full path name from file Mel <mwilson@the-wire.com> - 2011-05-24 12:04 -0400
  Re: Obtaining a full path name from file Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-05-25 08:36 +0200
    Re: Obtaining a full path name from file Tim Golden <mail@timgolden.me.uk> - 2011-05-25 08:29 +0100
  Re: Obtaining a full path name from file Dave Angel <davea@ieee.org> - 2011-05-25 07:05 -0400

csiph-web