FIX typo in config file name
This commit is contained in:
parent
47c3d5172d
commit
c9074c66d7
11
weenotify.py
11
weenotify.py
@ -33,7 +33,7 @@ import time
|
|||||||
import packetRead
|
import packetRead
|
||||||
|
|
||||||
##################### CONFIGURATION ##########################
|
##################### CONFIGURATION ##########################
|
||||||
DEFAULT_CONF=(os.path.expanduser("~"))+'/.weenotifrc'
|
DEFAULT_CONF=(os.path.expanduser("~"))+'/.weenotifyrc'
|
||||||
##################### END CONFIGURATION ######################
|
##################### END CONFIGURATION ######################
|
||||||
|
|
||||||
def expandPaths(path):
|
def expandPaths(path):
|
||||||
@ -202,12 +202,15 @@ def ensureBackgroundCheckRun(proc,conf):
|
|||||||
return proc
|
return proc
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s',\
|
|
||||||
datefmt='%H:%M:%S')
|
|
||||||
|
|
||||||
conf = readCommandLine()
|
conf = readCommandLine()
|
||||||
conf.update(readConfig(conf['config'],True))
|
conf.update(readConfig(conf['config'],True))
|
||||||
#TODO command line prevails
|
#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)
|
logging.getLogger().setLevel(logging.INFO)
|
||||||
if('log-file' in conf):
|
if('log-file' in conf):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user