parkouss / pyewmh

An implementation of EWMH (Extended Window Manager Hints) for python, based on Xlib.
GNU Lesser General Public License v3.0
40 stars 15 forks source link

Change to use relative import #3

Closed russell closed 9 years ago

russell commented 9 years ago

Fixes a bug where on python 2 importing results in an error because of a local module of the same name.

In [1]: import ewmh
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-07c02b8291f8> in <module>()
----> 1 import ewmh

/home/russell/.virtualenvs/damselfly/lib/python2.7/site-packages/ewmh/__init__.py in <module>()
      1 __version__ = '0.1.2'
      2 
----> 3 from ewmh.ewmh import EWMH

ImportError: No module named ewmh
parkouss commented 9 years ago

Hey,

Thanks Russel. :) I merge this in and will release a new 0.1.3 version soon. Thanks!