From 90b5ee02737bda3cd84ebc6ccceeb00dbf6ee08b Mon Sep 17 00:00:00 2001 From: jngrt Date: Fri, 7 Nov 2014 16:30:33 +0100 Subject: [PATCH] solve log-config-file bug --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 67e9ac8..4956aca 100755 --- a/main.py +++ b/main.py @@ -2,6 +2,8 @@ import socket, os, time, select, urllib, sys, threading, json, logging, logging.config +os.chdir(os.path.dirname(__file__)) # change present working directory to the one where this file is + logging.config.fileConfig('pylog.conf') logger = logging.getLogger('meshenger'+'.main') @@ -19,7 +21,6 @@ class Meshenger: os.system("echo 1 >> /proc/sys/net/ipv6/conf/br-lan/disable_ipv6") os.system("echo 1 >> /proc/sys/net/ipv6/conf/br-hotspot/disable_ipv6") - os.chdir(os.path.dirname(__file__)) # change present working directory to the one where this file is self.own_ip = self.get_ip_adress().strip() # this hash is needed in clientserve, so client can generate color