[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Libvir] [PATCH 3/3] Python cygvirtmod.dll -> libvirtmod.dll
- From: Daniel Veillard <veillard redhat com>
- To: David Mueller <dsm717 gmail com>
- Cc: libvir-list redhat com
- Subject: Re: [Libvir] [PATCH 3/3] Python cygvirtmod.dll -> libvirtmod.dll
- Date: Fri, 30 Nov 2007 02:58:39 -0500
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 redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]