[Tutor] os.path.join question
Bill Campbell
bill at celestial.net
Thu May 3 17:32:37 CEST 2007
On Wed, May 02, 2007, Jason Coggins wrote:
>
> Is it possible to use os.path.join to link to a file located in the
> directory above where you are currently located?
os.path.join('..', filename)
os.path.realpath(os.path.join('..', filename))
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``Democracy extends the sphere of individual freedom, Democracy attaches
all possible value to each man, while socialism makes each man a mere
agent, a mere number. Democracy and socialism have nothing in common but
one word: equality. But notice the difference: while democracy seeks
equality in liberty, socialism seeks equality in restraint and servitude.''
de Tocqueville == 1848
More information about the Tutor
mailing list