diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-03 13:59:24 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-03 13:59:24 (GMT) |
commit | 204bb6c9088aee4271d2888e6072aa9cd7d9af3e (patch) | |
tree | cf0e0dc0fa980e05c39766f868fc7cc60b464488 | |
parent | 617dc31a24435bb44df4f019d14a4d3df04e5b76 (diff) |
Fix makescripts to build with the new directory tree
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r-- | info.py | 20 | ||||
m--------- | makescripts | 0 |
2 files changed, 13 insertions, 7 deletions
@@ -30,11 +30,14 @@ if int(os.environ['INFO_L10N']): gettext.textdomain(service_name) _ = gettext.gettext -import sweetener -if sweetener.GTK == 3: - from gi.repository import GLib -else: - import glib as GLib +try: + import sweetener + if sweetener.GTK == 3: + from gi.repository import GLib + else: + import glib as GLib +except: + pass DOCUMENT = 0 CONFIG = 1 @@ -42,8 +45,11 @@ io_mode = DOCUMENT name = _('Graph Plotter') -GLib.set_prgname(name) -GLib.set_application_name(name) +try: + GLib.set_prgname(name) + GLib.set_application_name(name) +except: + pass generic_name = _('Mathematical Function Plotter') lower_name = 'graph-plotter' diff --git a/makescripts b/makescripts -Subproject 6781aa9a664298a593367b93a2639d43359225e +Subproject fbe7728c766c8eed8b243f0eadb522f40b0875d |