projects
/
python-kmod.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Issue #13 skipping building extensions on non-Linux platforms
[python-kmod.git]
/
kmod
/
__init__.py
diff --git
a/kmod/__init__.py
b/kmod/__init__.py
index 20a73ef99a104367f26d9e8ecc26ee3562698583..0d797870eae6d0f4af9d9e0c86ef228e8845ea4e 100644
(file)
--- a/
kmod/__init__.py
+++ b/
kmod/__init__.py
@@
-17,4
+17,8
@@
"Libkmod -- Python interface to kmod API."
from .version import __version__
-from .kmod import Kmod
+try:
+ from .kmod import Kmod
+except ImportError:
+ # this is a non-Linux platform
+ pass