From 06fa1bfed5aef8d52ee94d09ffc541e0f8d37704 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 30 Nov 2007 11:10:53 +0000 Subject: Fri Nov 30 11:04:00 GMT 2007 Richard W.M. Jones * 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). --- libvir.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libvir.py') diff --git a/libvir.py b/libvir.py index e108b3a..70ceebc 100644 --- a/libvir.py +++ b/libvir.py @@ -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. -- cgit