Changed the logging dir to be based on __file__ location.

This commit is contained in:
2017-10-21 16:11:36 +02:00
parent 1183126653
commit e5b3c8a249
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ from video import VIDEO_EXTENSIONS, Episode, Movie, Video
from subtitle import SUBTITLE_EXTENSIONS, Subtitle, get_subtitle_path
from utils import sanitize
logging.basicConfig(filename=env.logfile, level=logging.INFO)
logging.basicConfig(filename=os.path.dirname(__file__) + '/' + env.logfile, level=logging.INFO)
from datetime import datetime