FIX typo in config file name
parent
47c3d5172d
commit
c9074c66d7
11
weenotify.py
11
weenotify.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue