X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=jamaui%2Futil.py;h=3c82f1776c5be751bf9a09e6d552a2ea43f9b0c3;hp=d6e40541984bc33fe544a26743a5e962c994307c;hb=e671a4f6b6ab6f73f4052222c259570b8d31567b;hpb=99b9e55a7165a70a2e2f8846a214246d49faf9d0 diff --git a/jamaui/util.py b/jamaui/util.py index d6e4054..3c82f17 100644 --- a/jamaui/util.py +++ b/jamaui/util.py @@ -44,16 +44,15 @@ def get_platform(): platform = get_platform() -def jsonprint(x): - print simplejson.dumps(x, sort_keys=True, indent=4) +#def jsonprint(x): +# print simplejson.dumps(x, sort_keys=True, indent=4) def find_resource(name): if os.path.isfile(os.path.join('data', name)): return os.path.join('data', name) - elif os.path.isfile(os.path.join('/opt/jaemendo', name)): - return os.path.join('/opt/jaemendo', name) - elif os.path.isfile(os.path.join('/usr/share/jaemendo', name)): - return os.path.join('/usr/share/jaemendo', name) + elif os.path.isfile(os.path.join('/opt/jamaendo', name)): + return os.path.join('/opt/jamaendo', name) + elif os.path.isfile(os.path.join('/usr/share/jamaendo', name)): + return os.path.join('/usr/share/jamaendo', name) else: return None -