From: Dave Reisner <dreisner@archlinux.org>
To: util-linux@vger.kernel.org
Cc: Dave Reisner <dreisner@archlinux.org>
Subject: [PATCH] pylibmount: correctly import from pylibmount.so
Date: Thu, 21 Nov 2013 12:25:27 -0500 [thread overview]
Message-ID: <1385054727-20661-1-git-send-email-dreisner@archlinux.org> (raw)
Without this, python is unable to find the module:
$ python -c 'import libmount'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.3/site-packages/libmount/__init__.py", line 1, in <module>
from pylibmount import *
ImportError: No module named 'pylibmount'
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
libmount/python/libmount/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmount/python/libmount/__init__.py b/libmount/python/libmount/__init__.py
index 243c639..09104e2 100644
--- a/libmount/python/libmount/__init__.py
+++ b/libmount/python/libmount/__init__.py
@@ -1,2 +1,2 @@
-from pylibmount import *
+from .pylibmount import *
--
1.8.4.2
next reply other threads:[~2013-11-21 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 17:25 Dave Reisner [this message]
2013-12-01 15:49 ` [PATCH] pylibmount: correctly import from pylibmount.so Dave Reisner
2013-12-02 10:15 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385054727-20661-1-git-send-email-dreisner@archlinux.org \
--to=dreisner@archlinux.org \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox