Tons of fixes/tweaks/changes in general
[jamaendo] / jamaui / util.py
index d6e4054..bd0c758 100644 (file)
@@ -44,16 +44,16 @@ 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