summaryrefslogtreecommitdiff
path: root/invest-applet/invest/invest-applet.py
diff options
context:
space:
mode:
Diffstat (limited to 'invest-applet/invest/invest-applet.py')
-rwxr-xr-xinvest-applet/invest/invest-applet.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/invest-applet/invest/invest-applet.py b/invest-applet/invest/invest-applet.py
index 81900c23..1e08c5ab 100755
--- a/invest-applet/invest/invest-applet.py
+++ b/invest-applet/invest/invest-applet.py
@@ -19,20 +19,20 @@ else:
sys.path.insert(0, abspath("@PYTHONDIR@"))
# Now the path is set, import our applet
-import mate-invest, mate-invest.applet, mate-invest.defs, mate-invest.help
+import mate_invest, mate_invest.applet, mate_invest.defs, mate_invest.help
# Prepare i18n
import gettext, locale
-gettext.bindtextdomain(mate-invest.defs.GETTEXT_PACKAGE, mate-invest.defs.MATELOCALEDIR)
-gettext.textdomain(mate-invest.defs.GETTEXT_PACKAGE)
-locale.bindtextdomain(mate-invest.defs.GETTEXT_PACKAGE, mate-invest.defs.MATELOCALEDIR)
-locale.textdomain(mate-invest.defs.GETTEXT_PACKAGE)
+gettext.bindtextdomain(mate_invest.defs.GETTEXT_PACKAGE, mate_invest.defs.MATELOCALEDIR)
+gettext.textdomain(mate_invest.defs.GETTEXT_PACKAGE)
+locale.bindtextdomain(mate_invest.defs.GETTEXT_PACKAGE, mate_invest.defs.MATELOCALEDIR)
+locale.textdomain(mate_invest.defs.GETTEXT_PACKAGE)
from gettext import gettext as _
def applet_factory(applet, iid):
- mate-invest.debug('Starting invest instance: %s %s'% ( applet, iid ))
- mate-invest.applet.InvestApplet(applet)
+ mate_invest.debug('Starting invest instance: %s %s'% ( applet, iid ))
+ mate_invest.applet.InvestApplet(applet)
return True
# Return a standalone window that holds the applet
@@ -77,12 +77,12 @@ if __name__ == "__main__":
if o in ("-h", "--help"):
usage()
elif o in ("-d", "--debug"):
- mate-invest.DEBUGGING = True
- mate-invest.debug("Debugging enabled")
- # these messages cannot be turned by mate-invest.DEBUGGING at their originating location,
+ mate_invest.DEBUGGING = True
+ mate_invest.debug("Debugging enabled")
+ # these messages cannot be turned by mate_invest.DEBUGGING at their originating location,
# because that variable was set here to be True
- mate-invest.debug("Data Dir: %s" % mate-invest.SHARED_DATA_DIR)
- mate-invest.debug("Detected PROXY: %s" % mate-invest.PROXY)
+ mate_invest.debug("Data Dir: %s" % mate_invest.SHARED_DATA_DIR)
+ mate_invest.debug("Detected PROXY: %s" % mate_invest.PROXY)
elif o in ("-w", "--window"):
standalone = True
@@ -93,6 +93,6 @@ if __name__ == "__main__":
mateapplet.matecomponent_factory(
"OAFIID:Invest_Applet_Factory",
mateapplet.Applet.__gtype__,
- mate-invest.defs.PACKAGE,
- mate-invest.defs.VERSION,
+ mate_invest.defs.PACKAGE,
+ mate_invest.defs.VERSION,
applet_factory)