Problem With py2exe and ConfigParser

B

berserker992

Hello, i use python 2.6 + PyQt4.
I compile my main.pyw. It is compile, but don't run. In
"index.exe.log" error log:



how do I fix this?
 
D

Diez B. Roggisch

Hello, i use python 2.6 + PyQt4.
I compile my main.pyw. It is compile, but don't run. In
"index.exe.log" error log:




how do I fix this?


By passing the right path for the configuration file? It's obviously not
found.

Diez
 
D

Diez B. Roggisch

You can set an example? My English is bad, so I do not quite
understand

You need to give a proper path to the config.ini. It's not found, which most
probably occurs because you give a relative path ("config.ini") but that
doesn't work because the current working directory has a different value
from what it has when you run the problem differently.

So, you need to give a full path.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,536
Members
48,284
Latest member
alphabetsalphabets

Latest Threads

Top