diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2007-11-30 11:10:53 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2007-11-30 11:10:53 +0000 |
commit | 06fa1bfed5aef8d52ee94d09ffc541e0f8d37704 (patch) | |
tree | bf24b69ef6611b74996df6c00d223d3f64f7d763 /libvir.py | |
parent | b4cd1d2dd90974f3c10751dbbae5067a4eaced89 (diff) | |
download | libvirt-python-v6-06fa1bfed5aef8d52ee94d09ffc541e0f8d37704.tar.gz libvirt-python-v6-06fa1bfed5aef8d52ee94d09ffc541e0f8d37704.tar.xz libvirt-python-v6-06fa1bfed5aef8d52ee94d09ffc541e0f8d37704.zip |
Fri Nov 30 11:04:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
* python/libvir.c, python/libvir.py: Make Python aware that
the C bindings module is called cygvirtmod.dll when compiled
by CYGWIN.
* python/Makefile.am: Remove symlink libvirtmod.dll -> cygvirtmod.dll
no longer necessary because of the above.
* configure.in: Remove AM_CONDITIONAL(CYGWIN).
Diffstat (limited to 'libvir.py')
-rw-r--r-- | libvir.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,7 +4,13 @@ # Check python/generator.py in the source distribution of libvir # to find out more about the generation process # -import libvirtmod + +# On cygwin, the DLL is called cygvirtmod.dll +try: + import libvirtmod +except: + import cygvirtmod as libvirtmod + import types # The root of all libvirt errors. |