FIX typo in config file name

master
Théophile Bastian 2016-04-01 23:59:13 +02:00
parent 47c3d5172d
commit c9074c66d7
1 changed files with 7 additions and 4 deletions

View File

@ -33,7 +33,7 @@ import time
import packetRead
##################### CONFIGURATION ##########################
DEFAULT_CONF=(os.path.expanduser("~"))+'/.weenotifrc'
DEFAULT_CONF=(os.path.expanduser("~"))+'/.weenotifyrc'
##################### END CONFIGURATION ######################
def expandPaths(path):
@ -202,12 +202,15 @@ def ensureBackgroundCheckRun(proc,conf):
return proc
def main():
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s',\
datefmt='%H:%M:%S')
conf = readCommandLine()
conf.update(readConfig(conf['config'],True))
#TODO command line prevails
if 'log-file' not in conf:
conf['log-file']=None
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s',\
datefmt='%H:%M:%S', filename=conf['log-file'])
logging.getLogger().setLevel(logging.INFO)
if('log-file' in conf):