diff options
author | necoro <> | 2007-08-27 07:30:38 +0000 |
---|---|---|
committer | necoro <> | 2007-08-27 07:30:38 +0000 |
commit | 8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb (patch) | |
tree | cbc6522de7532adc6a85ff6e816e186b077f2cc4 /portato/plistener.py | |
parent | c16b547f2c2bc23bef3a93b1987715c00c521718 (diff) | |
download | portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.gz portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.bz2 portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.zip |
Change to absolute_imports; Warning: definitly broken
Diffstat (limited to '')
-rw-r--r-- | portato/plistener.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/portato/plistener.py b/portato/plistener.py index 1cd7529..452bee6 100644 --- a/portato/plistener.py +++ b/portato/plistener.py @@ -10,6 +10,8 @@ # # Written by René 'Necoro' Neumann <necoro@necoro.net> +from __future__ import absolute_import + import socket, os from subprocess import Popen from gettext import lgettext as _ @@ -19,8 +21,8 @@ try: except ImportError: pynotify = None -from constants import SOCKET, APP -from helper import debug, warning +from .constants import SOCKET, APP +from .helper import debug, warning class PListener (object): """This class handles the communication between the "listener" and the GUI. @@ -77,7 +79,7 @@ class PListener (object): """Displays a notify. This will do nothing if pynotify is not present and/or root is running the listener.""" - if pynotify and not os.getuid == 0: + if pynotify and os.getuid() != 0: if not pynotify.is_initted(): pynotify.init(APP) |