File opening
Chris Liechti
cliechti at gmx.net
Wed Apr 3 17:35:23 EST 2002
zayats at blue.seas.upenn.edu (Salim Zayat) wrote in
news:a8frho$qqu$1 at netnews.upenn.edu:
> Hey all. I was wondering about opening files. Now I know you need to
> include the path to the file in the open statement. Now the problems
> arises here, though. I am writing a module that reads in a config file
> and creates buttons from it. So if my module is run directly, the only
> thing you need is
>
>> open('./buttons.config', 'r')
>
> But if you wanna import the module, then the path to the open statement
> needs to be full path to the file. Is there a fix to this?
google brought up this:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52224
scroll down to the comments box. others have had that problem too...
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list