Write a file - beginner's question

Matthew Fitzgibbons elessar at nienna.org
Thu Jul 3 15:02:08 EDT 2008


Callie Bertsche wrote:
> I have a closely related note. How do I write to a relative path with
> python? Example,
> source = open('/../../directory/subdirectory/file.extension')
> 
> What am I missing?
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

Leave off the beginning slash.

-Matt



More information about the Python-list mailing list