[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

a problem with py2exe

devnew@gmail.com

1/12/2008 4:54:00 PM

I wrote an app that uses some Tix widgets and wanted to make an exe
using py2exe .i used the setup script as given in http://www.py2exe.org/index.cg...
and it copies the dlls into the dist directory created by py2exe.
But then the application works only if i create a directory named
'DLLs ' and copy the tix84.dll alone into that directory. it seems
silly to have tix84.dll in that dir and all other dlls in the dist
directory.can anyone advise me if i can run the app with all dlls in
one directory.
the setup script i used is below

import glob,os,sys
from distutils.core import setup
import py2exe

def files(folder):
for path in glob.glob(folder+'/*'):
if os.path.isfile(path):
yield path

data_files=[
('.', glob.glob(sys.prefix+'/DLLs/tix84.dll')),
('tcl/tix8.4', files(sys.prefix+'/tcl/tix8.4')),
('tcl/tix8.4/bitmaps',
files(sys.prefix+'/tcl/tix8.4/bitmaps')),
('tcl/tix8.4/pref',
files(sys.prefix+'/tcl/tix8.4/pref')),
]

setup(
script_args=['py2exe'],
windows=['pyfaces.py'],
data_files=data_files
)

thanx in adv
dn