From 19b1f12d3c8a4cc7994bf5683551451c34ce9583 Mon Sep 17 00:00:00 2001 From: epage Date: Tue, 27 Oct 2009 23:45:55 +0000 Subject: [PATCH] Fixed startup and added bugtracker git-svn-id: file:///svnroot/ejpi/trunk@62 df6cc7de-23d0-4ae0-bb86-c17aa67b2a9d --- src/constants.py | 3 +++ src/ejpi_glade.py | 2 +- support/builddeb.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/constants.py b/src/constants.py index 7e95678..f97381a 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,5 +1,8 @@ +import os + __pretty_app_name__ = "e**(j pi) + 1 = 0" __app_name__ = "ejpi" __version__ = "0.9.6" __build__ = 3 +_data_path_ = os.path.join(os.path.expanduser("~"), ".ejpi") __app_magic__ = 0xdeadbeef diff --git a/src/ejpi_glade.py b/src/ejpi_glade.py index 9c5bf52..0ebf765 100755 --- a/src/ejpi_glade.py +++ b/src/ejpi_glade.py @@ -110,7 +110,7 @@ class Calculator(object): os.path.join(os.path.dirname(__file__), "plugins/"), ] - _user_data = os.path.expanduser("~/.%s/" % constants.__app_name__) + _user_data = constants._data_path_ _user_settings = "%s/settings.ini" % _user_data _user_history = "%s/history.stack" % _user_data diff --git a/support/builddeb.py b/support/builddeb.py index 3504cfe..f0e8018 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -97,6 +97,7 @@ def build_package(distribution): p = py2deb.Py2deb(__appname__) p.prettyName = constants.__pretty_app_name__ p.description = __description__ + p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=ejpi" p.upgradeDescription = __changelog__.split("\n\n", 1)[0] p.author = __author__ p.mail = __email__ -- 1.7.9.5