On 26 ožu, 20:11, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Wed, 26 Mar 2008 15:38:16 -0300, Tzury Bar Yochay
> <[EMAIL PROTECTED]> escribió:
>
> >> ....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.
>
> > use the module zipimport
> >http://docs.python.org/lib/module-zipimport.html
>
> You don't have to do anything special to "use" zipimport; from
> <http://docs.python.org/lib/module-zipimport.html> :
> "It is usually not needed to use the zipimport module explicitly; it is
> automatically used by the builtin import mechanism"
>
> --
> Gabriel Genellina

Hello,

I was add this into my application code:

import sys
import os
my_dir=os.getcwd()
sys.path.append(my_dir)
sys.path.append(my_dir+"\\libary.zip")
sys.path.append(my_dir+"\\libary.zip\\py2exe") # PY2EXE is folder
f=open("path.txt","w")
f.write(str(sys.path))
f.close()

an the output in path.txt is :

['C:\\Users\\veki\\Desktop\\python\\PGS\\dist\\library.zip', 'C:\\Users
\\veki\\Desktop\\python\\PGS\\dist', 'C:\\Users\\veki\\Desktop\\python\
\PGS\\dist\\libary.zip', 'C:\\Users\\veki\\Desktop\\python\\PGS\\dist\
\libary.zip\\py2exe']

But it still can't find module py2exe.What should I do now? Any
examples?

Regards,
Vedran

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to