cosmetic fix
This commit is contained in:
parent
f650a5770f
commit
4a6f66272a
@ -149,7 +149,6 @@ class FilesChangedHandler(PatternMatchingEventHandler):
|
|||||||
event.src_path
|
event.src_path
|
||||||
path/to/observed/file
|
path/to/observed/file
|
||||||
"""
|
"""
|
||||||
global bot
|
|
||||||
if event.event_type=='created':
|
if event.event_type=='created':
|
||||||
processFile(event.src_path)
|
processFile(event.src_path)
|
||||||
|
|
||||||
@ -177,6 +176,7 @@ def exitGracefully(signum, frame):
|
|||||||
global shutdown
|
global shutdown
|
||||||
shutdown = True
|
shutdown = True
|
||||||
|
|
||||||
|
|
||||||
def setDefaults():
|
def setDefaults():
|
||||||
global configFile
|
global configFile
|
||||||
global defaults
|
global defaults
|
||||||
@ -247,6 +247,7 @@ def initLogger():
|
|||||||
logging.basicConfig(filename=logFile,level=logLevel,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
logging.basicConfig(filename=logFile,level=logLevel,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def checkPIDFile():
|
def checkPIDFile():
|
||||||
PIDFile = configParser.get('general', 'pid_file')
|
PIDFile = configParser.get('general', 'pid_file')
|
||||||
try:
|
try:
|
||||||
@ -310,6 +311,7 @@ def initBot():
|
|||||||
observer.schedule(FilesChangedHandler(), path=spool_dir)
|
observer.schedule(FilesChangedHandler(), path=spool_dir)
|
||||||
observer.start()
|
observer.start()
|
||||||
|
|
||||||
|
|
||||||
initSignals()
|
initSignals()
|
||||||
setDefaults()
|
setDefaults()
|
||||||
parseCmdLine()
|
parseCmdLine()
|
||||||
|
Loading…
Reference in New Issue
Block a user