=== modified file 'src/lib/universal-applets/__init__.py' --- src/lib/universal-applets/__init__.py 2008-10-29 21:00:32 +0000 +++ src/lib/universal-applets/__init__.py 2008-11-10 06:52:16 +0000 @@ -42,11 +42,8 @@ # Find Install Prefix # Note: It's important to do this before we import the Screenlets submodules #------------------------------------------------------------------------------- -try: - INSTALL_PREFIX = open("/etc/universal-applets/prefix").read()[:-1] -except: - INSTALL_PREFIX = "/usr" - +INSTALL_PREFIX = os.path.join(os.path.abspath(sys.argv[0]), '..') + #------------------------------------------------------------------------------- # Parse command line options # Note: This must be done before we import any submodules @@ -134,9 +131,6 @@ # file used to monitor running screenlets TEMP_FILE = TEMP_DIR + '/screenlets.' + os.environ['USER'] + '.running' -# the prefix screenlets was installed into -INSTALL_PREFIX = open("/etc/universal-applets/prefix").read()[:-1] - # the global directory where the screenlets are installed PATH = INSTALL_PREFIX + '/share/screenlets'