diff options
-rw-r--r-- | libkmod/python/README | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/libkmod/python/README b/libkmod/python/README index 53a238a..1e72c15 100644 --- a/libkmod/python/README +++ b/libkmod/python/README @@ -20,28 +20,21 @@ https://github.com/agrover/python-kmod Example (python invoked as root) -------------------------------- ->>>import kmod - ->>>km = kmod.Kmod() - ->>>km.loaded_modules() - -[('nfs', 407706), - ('nfs_acl', 12741) - -... - - ('virtio_blk', 17549)] - ->>>km.modprobe("btrfs") - ->>>km.rmmod("btrfs") +:: + + >>> import kmod + >>> km = kmod.Kmod() + >>> km.loaded_modules() + [('nfs', 407706), + ('nfs_acl', 12741) + ... + ('virtio_blk', 17549)] + >>> km.modprobe("btrfs") + >>> km.rmmod("btrfs") Building -------- -Ensure Python and kmod headers are installed and run: - -python setup.py build - +Ensure Python and kmod headers are installed and run:: + $ python setup.py build |