From bf9e3f16d0d7907984aee0eafe3dd1bd21a1af5d Mon Sep 17 00:00:00 2001 From: Vu Nhat Minh Date: Wed, 2 Jul 2014 16:25:56 +0900 Subject: [PATCH] fix json syntax --- rainbowstream/colorset/default.json | 47 ++++++++++++++--------------- rainbowstream/config.py | 2 +- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/rainbowstream/colorset/default.json b/rainbowstream/colorset/default.json index 4e3e36a..e33f9de 100644 --- a/rainbowstream/colorset/default.json +++ b/rainbowstream/colorset/default.json @@ -1,23 +1,21 @@ -/* -Default color config for rainbowstream -Following 16 basic colors is supported: - default - black - red - green - yellow - blue - magenta - cyan - grey - light_red - light_green - light_yellow - light_blue - light_magenta - light_cyan - white -*/ +// Default color config for rainbowstream +// Following 16 basic colors is supported: +// default +// black +// red +// green +// yellow +// blue +// magenta +// cyan +// grey +// light_red +// light_green +// light_yellow +// light_blue +// light_magenta +// light_cyan +// white { "TWEET" : { @@ -27,7 +25,7 @@ Following 16 basic colors is supported: "favourite" : "light_green", "rt" : "grey", "link" : "light_cyan", - "keyword" : "on_light_yellow", + "keyword" : "on_light_yellow" }, "MESSAGE" : { @@ -35,7 +33,7 @@ Following 16 basic colors is supported: "recipient" : "grey", "to" : "light_magenta", "clock" : "grey", - "id" : "grey", + "id" : "grey" }, "PROFILE" : { @@ -47,11 +45,10 @@ Following 16 basic colors is supported: "description" : "light_yellow", "location" : "light_magenta", "url" : "light_cyan", - "clock" : "white", + "clock" : "white" }, "TREND" : { - "url": "light_cyan", + "url": "light_cyan" } - } \ No newline at end of file diff --git a/rainbowstream/config.py b/rainbowstream/config.py index 67dfc91..409f160 100644 --- a/rainbowstream/config.py +++ b/rainbowstream/config.py @@ -30,7 +30,7 @@ IMAGE_SHIFT = 10 IMAGE_MAX_HEIGHT = 40 # Load colorset -default_colorset = 'colorset/default.json' +default_colorset = 'rainbowstream/colorset/default.json' try: if os.path.exists(default_colorset): data = json.load(open(default_colorset)) -- 2.25.1