~ubuntu-branches/ubuntu/maverick/libvirt/maverick

« back to all changes in this revision

Viewing changes to python/libvir.py

Tags: upstream-0.6.4
Import upstream version 0.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# On cygwin, the DLL is called cygvirtmod.dll
9
9
try:
10
10
    import libvirtmod
11
 
except:
12
 
    import cygvirtmod as libvirtmod
 
11
except ImportError, lib_e:
 
12
    try:
 
13
        import cygvirtmod as libvirtmod
 
14
    except ImportError, cyg_e:
 
15
        if str(cyg_e).count("No module named"):
 
16
            raise lib_e
13
17
 
14
18
import types
15
19