aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2020-03-31 14:56:42 +0200
committerGuido Günther <agx@sigxcpu.org>2020-03-31 14:56:42 +0200
commit674537ad4f9ac4f6dd7e6b152f41c9935cc3fc33 (patch)
tree0adce2796a47077d9f7e8ac548477e12ad956154
parentfabe5a19a6068a2d47e11f8316a3a2d30aeff42e (diff)
Drop schema dir woraround
This is better suited by a run script
-rwxr-xr-xsrc/prepaid-manager-applet.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
index e1aadfb..f0fe9a3 100755
--- a/src/prepaid-manager-applet.py
+++ b/src/prepaid-manager-applet.py
@@ -765,19 +765,6 @@ def setup_i18n():
logging.debug('Using locale: %s', locale.getlocale())
-def setup_schemas():
- """If we're running from the source tree add our gsettings schema to the
- list of schema dirs"""
-
- schema_dir = 'data'
- schema = os.path.join(schema_dir,
- "%s.gschema.xml" % AccountDB.PPM_GSETTINGS_ID)
- if os.path.exists(schema):
- logging.debug("Running from source tree, adding local schema dir '%s'"
- % schema_dir)
- os.environ["GSETTINGS_SCHEMA_DIR"] = "data"
-
-
def setup_prgname():
"""Set the prgname since gnome-shell is application based"""
GLib.set_prgname(ppm.prgname)
@@ -802,7 +789,6 @@ def main(args):
setup_i18n()
setup_prgname()
- setup_schemas()
controller = PPMController()
main_dialog = PPMDialog(controller)