[Tutor] write to a file in linux (again)!

Watt III, Glenn gwatt3@backbonesecurity.com
Wed, 21 Aug 2002 13:42:31 -0400


-----Original Message-----
From: alan.gauld@bt.com [mailto:alan.gauld@bt.com]
Sent: Wednesday, August 21, 2002 1:31 PM
To: Watt III, Glenn; tutor@python.org
Subject: RE: [Tutor] write to a file in linux (again)!

>
>This is a guess but...
>
>Is=20
>
>newdesign/papers/cgi=20
>
>supposed to be a relative path? Or should it really be:
>
>/newdesign/papers/cgi
>
>Just a thought.=20
>
>If the directory doesn't exist python won't=20
>create it, it will only create the file itself.
>If you want to create the path as well you'll=20
>need to use something else, probably in the=20
>os module...
>
>os.mkdirs() looks like the one you would need.
>
>HTH,
>
>Alan g.

well i appreciate the thought but the path is relative i tried the full
path and i got the same error