- Small typo, one _ missing on each side ;)

pull/56/head
Steve Clement 2018-03-31 19:36:17 +09:00
parent a6c4f2928d
commit b7be2afaa1
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import util
import contributor_helper
ONE_DAY = 60*60*24
configfile = os.path.join(os.path.dirname(os.path.realpath(_file_)), 'config/config.cfg')
configfile = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config/config.cfg')
cfg = configparser.ConfigParser()
cfg.read(configfile)
serv_log = redis.StrictRedis(

View File

@ -18,7 +18,7 @@ from helpers import contributor_helper
from helpers import users_helper
from helpers import trendings_helper
configfile = os.path.join(os.path.dirname(os.path.realpath(_file_)), 'config/config.cfg')
configfile = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config/config.cfg')
cfg = configparser.ConfigParser()
cfg.read(configfile)

View File

@ -10,7 +10,7 @@ import os
import sys
import json
configfile = os.path.join(os.path.dirname(os.path.realpath(_file_)), 'config/config.cfg')
configfile = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config/config.cfg')
cfg = configparser.ConfigParser()
cfg.read(configfile)
logDir = cfg.get('Log', 'directory')