summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-09 20:37:39 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-09 20:37:39 +0000
commit7fd6153720746edff4af900dc9c3579d3cde6e32 (patch)
tree41a6053716e059f24a9e4b9e3b935c28dac940c3 /src/config.py
parentdf6d2fc2d3aa8b6ea396e96acddf6b695ec35197 (diff)
downloadpoezio-7fd6153720746edff4af900dc9c3579d3cde6e32.tar.gz
poezio-7fd6153720746edff4af900dc9c3579d3cde6e32.tar.bz2
poezio-7fd6153720746edff4af900dc9c3579d3cde6e32.tar.xz
poezio-7fd6153720746edff4af900dc9c3579d3cde6e32.zip
fix some little issues. Rename gui to core, use logging lib instead of the custom debug option. Add a -d option
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/config.py b/src/config.py
index 287c47ec..a3f03849 100644
--- a/src/config.py
+++ b/src/config.py
@@ -137,13 +137,8 @@ if not path.isfile(CONFIG_PATH+'poezio.cfg'):
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename", default=CONFIG_PATH+'poezio.cfg',
- help="the config file you want to use", metavar="CONFIG_FILE")
+ help="The config file you want to use", metavar="CONFIG_FILE")
+parser.add_option("-d", "--debug", dest="debug",
+ help="The file where debug will be written", metavar="DEBUG_FILE")
(options, args) = parser.parse_args()
config = Config(options.filename)
-
-if __name__ == '__main__':
- # tests
- import sys
- (dummy, filename, section, option, value) = sys.argv
- conf = Config(sys.argv[1])
- conf.write_in_file(section, option, value)