From f324c33f6b84e49cffc0dfe4a22e35adedc45141 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Mon, 18 Apr 2016 15:56:20 -0500 Subject: [PATCH] changed to be location agnostic --- tagserver_MySQL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tagserver_MySQL.py b/tagserver_MySQL.py index f99bba9..9cd5724 100644 --- a/tagserver_MySQL.py +++ b/tagserver_MySQL.py @@ -11,8 +11,9 @@ import pickle from tag.tag_mysql import Tag import traceback import time +import os -with open('/root/tag-server/mysql_cfg.pickle', 'rb') as pickleconfig: +with open(os.path.realpath('.') + '/mysql_cfg.pickle', 'rb') as pickleconfig: mysql_cfg = pickle.load(pickleconfig) if mysql_cfg: