newbie, relative path

Michael Melchert mmelchert at cgg.com
Wed Oct 31 08:48:27 EST 2001


Marcus Stojek wrote:

> Hi,
> 2 little questions.:
> 
> 1.
> I have a small script that uses an .ini file for configuration. How
> can I open the file config.ini that is in the same dir as the script
> itself? (script dir is changing)
> 
> config=open("?????config.ini","r")
> 
> 2.
> I am pretty sure that I have read somewhere that it is possible
> to link the Python Interpreter and everthing together and make
> a binary executabel (WIN) from the script. I don't find this in
> "Programming Python" or "Learning Python" any more.
> 
> Is it possible and where can I find a description?
> 
> Thanks again.
> 
> Marcus
2.:
http://www.google.com/search?q=py2exe




More information about the Python-list mailing list