[Pythonmac-SIG] Problems with shelve

Francois Granger fgranger@altern.org
Sat, 1 Jul 2000 16:40:00 +0200


At 9:01 -0400 on 1/07/00, in message [Pythonmac-SIG] Problems with 
shelve, you wrote:
>Files seem to be created sporaticaly in either the Python folder or 
>the same folder as the script.

What about giving a full path name ?

(code not tested)
import os
from os.path import *

fullFileName = join(split(os.getcwd ())[0], 'filename')

-- 
"Computers are like horses; they can sense fear and will act based on
that. Or, look at it like this. If you have a premonition of danger,
maybe you're right." - Adam Engst