En Wed, 26 Mar 2008 14:55:43 -0300, <[EMAIL PROTECTED]> escribió: > Does anybody have any idea how can I embed my modules to libary.zip > and use it from my application.For example if user write this code in > my TextEntry ( or something like that, textentry is created with > wxpython ) : > > import d3dx # directpython module > frame=d3dx.Frame(u"My frame") # create frame > frame.Mainloop() # run it > > ....and then when my application execute code how can I set path to > d3dx module to "library.zip/d3dx.py". > I'm not sure is this properly set question.
If d3dx.py is in library.zip (top level), and the path to library.zip is in sys.path, Python will find the module. A .zip in sys.path acts as it were a directory itself. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list