But given the vagueness of what I asked, you're right, os.makedirs was
a good suggestion too. Thanks. I think I need to sit down and spend
some quality time with the os module over Thanksgiving holiday...

Josh

On Thu, Nov 20, 2008 at 9:30 AM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
> cbook.mkdirs includes a few if-then calls that only make the directory
> if it doesn't already exist (in fact it actually calls os.makedirs in
> the function), whereas os.makedirs raises an OSError if the folder I
> specified already exists. For my purposes, the cbook implementation is
> more convenient.
>
> Josh
>
> On Thu, Nov 20, 2008 at 9:22 AM, Christopher Barker
> <[EMAIL PROTECTED]> wrote:
>> Joshua Lippai wrote:
>>>  Now that just leaves creating the directory. I like
>>> the cbook.mkdirs implementation a lot better than the non-recursive
>>> version in os... thanks for the tip!
>>
>> why not os.makedirs() ?
>>
>> -Chris
>>
>> --
>> Christopher Barker, Ph.D.
>> Oceanographer
>>
>> Emergency Response Division
>> NOAA/NOS/OR&R            (206) 526-6959   voice
>> 7600 Sand Point Way NE   (206) 526-6329   fax
>> Seattle, WA  98115       (206) 526-6317   main reception
>>
>> [EMAIL PROTECTED]
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to