From 3a0a9857b116cacda9ac658b5410f80857cf29da Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Mon, 11 Jan 2016 18:13:45 -0500 Subject: combox/cbox.py: configuration related update. Now, combox starts configuration when the configuration directory or the configuration file does not exist. --- ChangeLog | 6 ++++++ combox/cbox.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1827e52..e0aa0c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-01-11 Siddharth Ravikumar + + * combox/cbox.py: Now, combox starts configuration when the + configuration directory does not exist or when the configuration + file does not exist. + 2016-01-10 Siddharth Ravikumar * combox/gui.py: Rewrote/Added docstrings; they're sphinx friendly diff --git a/combox/cbox.py b/combox/cbox.py index 2e29f70..0244284 100644 --- a/combox/cbox.py +++ b/combox/cbox.py @@ -121,7 +121,8 @@ def main(): log_i(CONFIG_DIR) - if not path.exists(CONFIG_DIR): + if (not path.exists(CONFIG_DIR) or + not path.exists(config_file)): # combox not configured. if not args.cli: ComboxConfigDialog("combox configuration", CONFIG_DIR) -- cgit v1.2.3