Format and typo

This commit is contained in:
nemunaire 2016-10-23 21:33:58 +02:00
parent 40fc84fcec
commit 26d1f5b6e8

View File

@ -71,8 +71,8 @@ def main():
args.pidfile = os.path.abspath(os.path.expanduser(args.pidfile))
args.socketfile = os.path.abspath(os.path.expanduser(args.socketfile))
args.logfile = os.path.abspath(os.path.expanduser(args.logfile))
args.files = [ x for x in map(os.path.abspath, args.files)]
args.modules_path = [ x for x in map(os.path.abspath, args.modules_path)]
args.files = [x for x in map(os.path.abspath, args.files)]
args.modules_path = [x for x in map(os.path.abspath, args.modules_path)]
# Check if an instance is already launched
if args.pidfile is not None and os.path.isfile(args.pidfile):
@ -96,7 +96,7 @@ def main():
with open(args.pidfile, "w+") as f:
f.write(str(os.getpid()))
# Setup loggin interface
# Setup logging interface
import logging
logger = logging.getLogger("nemubot")
logger.setLevel(logging.DEBUG)
@ -201,5 +201,6 @@ def main():
sigusr1handler(0, None)
sys.exit(0)
if __name__ == "__main__":
main()