summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorNecoro <>2008-01-14 19:22:31 +0000
committerNecoro <>2008-01-14 19:22:31 +0000
commit96d242c00eca8c75c1d7d2fb487e53b5bc34155c (patch)
tree9b29102a06617099bc27192acf3cf0357b6c8ec0 /portato
parentf9a4a36b341b1d866269f568e86cbf63b90b5f63 (diff)
downloadportato-96d242c00eca8c75c1d7d2fb487e53b5bc34155c.tar.gz
portato-96d242c00eca8c75c1d7d2fb487e53b5bc34155c.tar.bz2
portato-96d242c00eca8c75c1d7d2fb487e53b5bc34155c.zip
r617@Devoty: necoro | 2008-01-14 19:12:59 +0100
Remove unnecessairy loads of the shm module
Diffstat (limited to 'portato')
-rw-r--r--portato/plistener.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/plistener.py b/portato/plistener.py
index a96f4b2..eb12606 100644
--- a/portato/plistener.py
+++ b/portato/plistener.py
@@ -17,11 +17,6 @@ from subprocess import Popen
from gettext import lgettext as _
try:
- import shm_wrapper as shm
-except ImportError:
- from portato.shm import shm_wrapper as shm
-
-try:
import pynotify
except ImportError:
pynotify = None
@@ -95,6 +90,11 @@ class PListener (object):
self._sig = None
self._rw = None
else:
+ try:
+ import shm_wrapper as shm
+ except ImportError:
+ from portato.shm import shm_wrapper as shm
+
self._mem = shm.SharedMemoryHandle(mem)
self._sig = shm.SemaphoreHandle(sig)
self._rw = shm.SemaphoreHandle(rw)