summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xportato.py5
-rw-r--r--portato/plistener.py6
2 files changed, 9 insertions, 2 deletions
diff --git a/portato.py b/portato.py
index 3bf9ab6..4019504 100755
--- a/portato.py
+++ b/portato.py
@@ -18,7 +18,10 @@ import sys, os, subprocess
import gettext, locale
from optparse import OptionParser, SUPPRESS_HELP
-import shm_wrapper as shm
+try:
+ import shm_wrapper as shm
+except ImportError:
+ from portato.shm import shm_wrapper as shm
from portato import listener
from portato.constants import VERSION, FRONTENDS, STD_FRONTEND, XSD_LOCATION, LOCALE_DIR, APP, SU_COMMAND
diff --git a/portato/plistener.py b/portato/plistener.py
index 291a30c..a96f4b2 100644
--- a/portato/plistener.py
+++ b/portato/plistener.py
@@ -12,12 +12,16 @@
from __future__ import absolute_import
-import shm_wrapper as shm
import os
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