commit 49f70baee7f42e31b509d23ce667143e0b5cbd45 Author: Karsten Loesing karsten.loesing@gmx.net Date: Thu Aug 16 21:01:40 2012 +0200
Add Sathya's fix for the relative path issue. --- compass.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compass.py b/compass.py index 7bb25c9..0bacc05 100755 --- a/compass.py +++ b/compass.py @@ -9,7 +9,7 @@ import json import operator import sys -import os.path +import os from optparse import OptionParser, OptionGroup import urllib import re @@ -115,7 +115,7 @@ class RelayStats(object): @property def data(self): if not self._data: - self._data = json.load(file('details.json')) + self._data = json.load(file(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'details.json'))) return self._data
@property
tor-commits@lists.torproject.org