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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
a problem with py2exe
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password