[Libvir] [PATCH 3/3] Python cygvirtmod.dll -> libvirtmod.dll
Daniel Veillard
veillard at redhat.com
Fri Nov 30 07:58:39 UTC 2007
On Thu, Nov 29, 2007 at 07:41:18PM -0800, David Mueller wrote:
> Daniel Veillard wrote:
> > hum, I think it would also require a change to the python C file
> >to rename the entry point too, otherwise a simple
> > try:
> > import libvirtmod
> > except:
> > import cygvirtmod
> >
> >might have done it.
>
> I would use
>
> try:
> import libvirtmod
> except:
> import cygvirtmod as libvirtmod
>
> as this avoids namespace problems with the rest of the code in the file.
oh, right, good point !
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the libvir-list
mailing list