diff -uNr blogtk-2.0-original/share/blogtk2/lib/blogtk2/__init__.py blogtk-2.0/share/blogtk2/lib/blogtk2/__init__.py --- blogtk-2.0-original/share/blogtk2/lib/blogtk2/__init__.py 2009-11-19 18:20:31.000000000 -0500 +++ blogtk-2.0/share/blogtk2/lib/blogtk2/__init__.py 2010-12-18 14:42:41.852995437 -0500 @@ -1,10 +1,11 @@ from os.path import abspath, dirname, join, pardir +import sys # here we define the path constants so that other modules can use it. # this allows us to get access to the shared files without having to # know the actual location, we just use the location of the current # file and use paths relative to that. -SHARED_FILES = abspath(join(dirname(__file__), pardir, pardir)) +SHARED_FILES = abspath(join(sys.prefix, 'share', 'blogtk2')) LOCALE_PATH = join(SHARED_FILES, 'i18n') RESOURCE_PATH = join(SHARED_FILES, 'res')