6862fab099
Current Features * View names on any bus * View exported objects, interfaces, methods and signals * View the full command line of services on the bus WWW: http://live.gnome.org/DFeet/ PR: ports/150489 Submitted by: Thinker K.F. Li <thinker at eeebox.branda.to> Feature safe: yes
33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
--- d-feet.orig 2010-09-11 16:31:34.000000000 +0800
|
|
+++ d-feet 2010-09-11 18:08:06.000000000 +0800
|
|
@@ -14,6 +14,7 @@
|
|
|
|
import os, sys
|
|
import optparse
|
|
+from pkg_resources import Requirement, resource_filename
|
|
|
|
parser = optparse.OptionParser(usage="%prog [options] [project-file]")
|
|
|
|
@@ -27,15 +28,17 @@
|
|
ENV_PATHS = {"DFEET_DATA_PATH" : "ui/",
|
|
"DFEET_IMAGE_PATH" : "ui/",
|
|
"DFEET_LOCALE_PATH" : "locale/",
|
|
- "DFEET_HELP_PATH" : "/usr/share/gnome/dfeet/"
|
|
+ "DFEET_HELP_PATH" : "/usr/local/share/gnome/dfeet/"
|
|
}
|
|
|
|
|
|
else:
|
|
- ENV_PATHS = {"DFEET_DATA_PATH" : "/usr/share/dfeet/",
|
|
- "DFEET_IMAGE_PATH" : "/usr/share/dfeet/pixmaps/",
|
|
- "DFEET_LOCALE_PATH" : "/usr/share/locale/",
|
|
- "DFEET_HELP_PATH" : "/usr/share/gnome/dfeet/"
|
|
+ req = Requirement.parse("d-feet")
|
|
+
|
|
+ ENV_PATHS = {"DFEET_DATA_PATH" : resource_filename(req, "share/dfeet/"),
|
|
+ "DFEET_IMAGE_PATH" : resource_filename(req, "share/dfeet/pixmaps/"),
|
|
+ "DFEET_LOCALE_PATH" : resource_filename(req, "share/locale/"),
|
|
+ "DFEET_HELP_PATH" : resource_filename(req, "share/gnome/dfeet/")
|
|
}
|
|
|
|
#must set variables before importing Globals because it requires them
|