Exe. error

Şansal Birbaş sansal.birbas at alarko-carrier.com.tr
Tue Mar 15 07:32:33 EDT 2011


Hi,

I created an executable version of my application succesfully. It is just a basic database related app. So it has a database and an icon file in the same directory called "data".
When I try to add an entry to my database using the .exe file, it gives an error such as "unable to open database file". But there is no problem with the icon.

Could anyone help me?

Thanks.

Here is my setup.py:


from distutils.core import setup
import py2exe
from glob import glob

data_files = [("Microsoft.VC90.CRT", glob(r'c:\dev\ms-vc-runtime\*.*')),("data", glob('Veriler\*'))]

options = {
    'py2exe': {
        'dll_excludes': [
            'MSVCP90.dll'
        ]
    }
}

setup(windows=[{"script": "Nokta Ekleme.pyw","icon_resources": [(1, "Veriler\Alarko.ico")]}], options=options, data_files=data_files)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110315/09686352/attachment.html>


More information about the Python-list mailing list