diff --git a/give_honors_to_org.py b/give_honors_to_org.py index 82f2a30..0878882 100755 --- a/give_honors_to_org.py +++ b/give_honors_to_org.py @@ -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( diff --git a/zmq_dispatcher.py b/zmq_dispatcher.py index bb54afe..0f1f137 100755 --- a/zmq_dispatcher.py +++ b/zmq_dispatcher.py @@ -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) diff --git a/zmq_subscriber.py b/zmq_subscriber.py index f343892..e8944c0 100755 --- a/zmq_subscriber.py +++ b/zmq_subscriber.py @@ -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')