[Tutor] How use relative path of Linux environment in Python (fwd)
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Mon Apr 24 19:49:51 CEST 2006
---------- Forwarded message ----------
Date: Mon, 24 Apr 2006 14:28:34 +0700
From: Keo Sophon <keosophon at khmeros.info>
To: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
Subject: Re: [Tutor] How use relative path of Linux environment in Python
On Monday 24 April 2006 14:24, you wrote:
> On Mon, 24 Apr 2006, Keo Sophon wrote:
>> Do you have any idea of how to use relative path of Linux environment in
>> Python. For example, if a program would like to create an oupfile from
>> these assignment: outputfile = "~/Desktop/" + workingfile, while "~" is
>> the short cut to the path of current user.
>
> This seems similar to a question that was asked and answered a few days
> ago:
>
> http://mail.python.org/pipermail/tutor/2006-April/046613.html
>
> Are you trying to do something similar?
Yes, same. Just a small point different, he tried to read the file, i am
trying to write the file.
Phon
More information about the Tutor
mailing list