diff options
author | Necoro <> | 2008-01-14 19:22:31 +0000 |
---|---|---|
committer | Necoro <> | 2008-01-14 19:22:31 +0000 |
commit | 96d242c00eca8c75c1d7d2fb487e53b5bc34155c (patch) | |
tree | 9b29102a06617099bc27192acf3cf0357b6c8ec0 /portato.py | |
parent | f9a4a36b341b1d866269f568e86cbf63b90b5f63 (diff) | |
download | portato-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 '')
-rwxr-xr-x | portato.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,11 +18,6 @@ import sys, os, subprocess import gettext, locale from optparse import OptionParser, SUPPRESS_HELP -try: - import shm_wrapper as shm -except ImportError: - from portato.shm import shm_wrapper as shm - from portato import get_listener from portato.constants import VERSION, FRONTENDS, STD_FRONTEND, XSD_LOCATION, LOCALE_DIR, APP, SU_COMMAND @@ -104,6 +99,11 @@ def main (): else: # start us again in root modus and launch listener + try: + import shm_wrapper as shm + except ImportError: + from portato.shm import shm_wrapper as shm + mem = shm.create_memory(1024, permissions=0600) sig = shm.create_semaphore(InitialValue = 0, permissions = 0600) rw = shm.create_semaphore(InitialValue = 1, permissions = 0600) |