Leif K-Brooks wrote:

> ~ is interpreted as "my home directory" by the shell, but when it's used 
> in a path, it has no special meaning. open('~/foo.txt') tries to open a 
> file called foo.txt in a subdirectory of the current directory called '~'.

That's what os.path.expanduser is for.

-- 
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
   It is much safer to obey than to rule.
    -- Thomas a Kempis
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to