pylibmount: correctly import from pylibmount.so
PATCH 1/1 pylibmount: correctly import from pylibmount.so
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 <[email protected]>
--- libmount/python/libmount/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
libmount/python/libmount/__init__.py +1 -1
@@ -1,2 +1,2 @@ -from pylibmount import * +from .pylibmount import *
Signature · 1 line
1.8.4.2
Just wanted to make sure this didn't get lost...
Quoted 25 lines · Dave Reisner
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 <[email protected]>--- libmount/python/libmount/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)libmount/python/libmount/__init__.py +1
-1@@ -1,2 +1,2 @@ -from pylibmount import * +from .pylibmount import *Signature · 1 line
1.8.4.2
Quoted 8 lines · Dave Reisner
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'
Hmm... it seems we have always tested this with PYTHONPATH=...
libmount/python/libmount/__init__.py line 1
Quoted 2 lines
libmount/python/libmount/__init__.py +1
-1-from pylibmount import * +from .pylibmount import *
Applied, thanks.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com