Re: [pyxpcom] python and xulrunner - how to use
by Rasjid Wilcox other posts by this author
May 22 2009 3:48AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] python and xulrunner - how to use
|
Re: [pyxpcom] python and xulrunner - how to use
2009/5/22 Vanush Vee <vanush@[...].com> :
> Now. Another question.. How do I get pywin32 working? I copied over the
> files from my python directory and I get the error : No module called
> pywin32.
>
I have got pywin32 working under xulrunner by first creating a python
virtual environment (http://pypi.python.org/pypi/virtualenv) and
installing pywin32 into that using easy_install -Z
pywin32-XXX.win32-pyX.X.exe. I find this lays out the files in a way
that seems to work well with xulrunner.
Then I copied the relevant directories from the virtual environment to
my xulrunner pylib directory. In this case, I copied everything
*within* the pywin32-XXX-pyX.X-win32.egg directory into the pylib
directory. You could copy the actual .egg directory itself, but you
would then probably have to adjust your sys.path.
There may be other better or simpler ways, but that worked for me.
I've got win32com working this way so I can call windows COM
components from xulrunner, and it worked a treat.
Cheers,
Rasjid.
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Vanush Vee
Todd Whiteman
Vanush Vee
Rasjid Wilcox
Vanush Vee
|