quick fix sudo installer put file in /root/ bug
authorOrakaro <nhatminh_179@hotmail.com>
Sat, 26 Jul 2014 02:55:19 +0000 (11:55 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Sat, 26 Jul 2014 02:55:19 +0000 (11:55 +0900)
rainbowstream/config.py
setup.py

index 1245ca456371d6a9de4d8f0944d7368c6be6da5d..41312952fe8419b489df5f3be84cfef133e8650e 100644 (file)
@@ -91,7 +91,11 @@ def set_config(key, value):
         os.environ.get(
             'USERPROFILE',
             '')) + os.sep + '.rainbow_config.json'
-    data = load_config(path)
+    data = {}
+    try:
+        data = load_config(path)
+    except:
+        pass
     # Update global config
     c[key] = value
     # Update config file
@@ -172,7 +176,7 @@ def init_config():
         for d in data:
             c[d] = data[d]
     except:
-        print('It seems that ~/.rainbow_config.json has wrong format :(')
+        pass
     # Load default theme
     theme_file = os.path.dirname(
         __file__) + '/colorset/' + c['THEME'] + '.json'
index 715c91971f303bc60f2db81910ad178431b8e9a3..b8330c64515841de3cc6b503dc1807df2c3dcb3f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 import os, sys
 
 # Bumped version
-version = '0.4.7'
+version = '0.4.8'
 
 # Require
 install_requires = [