Revision: 5247 Author: nicdumz Date: 2008-04-21 23:16:57 +0000 (Mon, 21 Apr 2008)
Log Message: ----------- sys.path.append('..') is not working here. I think that this one is better.
Modified Paths: -------------- trunk/pywikipedia/maintenance/readtalk.py
Modified: trunk/pywikipedia/maintenance/readtalk.py =================================================================== --- trunk/pywikipedia/maintenance/readtalk.py 2008-04-21 23:14:21 UTC (rev 5246) +++ trunk/pywikipedia/maintenance/readtalk.py 2008-04-21 23:16:57 UTC (rev 5247) @@ -8,8 +8,8 @@ TODO: *Error checking """ -import sys -sys.path.append('..') +import sys, re +sys.path.append(re.sub('/[^/]*$', '', sys.path[0])) #sys.path.append('..') import wikipedia, config
def main():