newbie, relative path

Marcus Stojek stojek at part-gmbh.de
Wed Oct 31 08:01:08 EST 2001


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



More information about the Python-list mailing list