Fixed comment parsing

This commit is contained in:
snare 2013-07-07 21:45:28 +10:00
parent f51a45ad7f
commit 485e90176c
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ def main(debugger=None, dict=None):
log = logging.getLogger('')
# Load config
config = json.loads(file(os.path.expanduser('~/.voltron')).read())
config_data = file(os.path.expanduser('~/.voltron')).read()
lines = filter(lambda x: len(x) != 0 and x[0] != '#', config_data.split('\n'))
config = json.loads('\n'.join(lines))
# Set up queue
queue = Queue.Queue()