Re: [PATCH] pylibmount: correctly import from pylibmount.so

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 21, 2013 at 12:25:27PM -0500, Dave Reisner wrote:
> 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=...

> -from pylibmount import *
> +from .pylibmount import *

 Applied, thanks.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux