diff options
-rw-r--r-- | setup/config.py.in | 2 | ||||
-rw-r--r-- | setup/main2.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/setup/config.py.in b/setup/config.py.in index b601570..0316cb1 100644 --- a/setup/config.py.in +++ b/setup/config.py.in @@ -24,5 +24,5 @@ def get_version(): return "@VERSION@" -def get_package_data_dir(): +def get_data_dir(): return "@datadir@" diff --git a/setup/main2.py b/setup/main2.py index d621412..4f55b13 100644 --- a/setup/main2.py +++ b/setup/main2.py @@ -32,7 +32,7 @@ from gi.repository import Gtk from gi.repository import IBus from xdg import BaseDirectory -import version +import config from dicttreeview import DictionaryTreeView _ = lambda x : gettext.gettext(x) @@ -355,7 +355,7 @@ class PreferencesDialog: self.__page_about.show() self.__name_version = self.__builder.get_object("NameVersion") - self.__name_version.set_markup(_("<big><b>Intelligent Pinyin %s</b></big>") % version.get_version()) + self.__name_version.set_markup(_("<big><b>Intelligent Pinyin %s</b></big>") % config.get_version()) def __changed_cb(self, widget, name): self.__set_value(name, widget.get_active()) |