Revision: 6952 Author: russblau Date: 2009-06-11 17:14:51 +0000 (Thu, 11 Jun 2009)
Log Message: ----------- Use existing function that correctly handles OS file path conventions
Modified Paths: -------------- trunk/pywikipedia/login.py
Modified: trunk/pywikipedia/login.py =================================================================== --- trunk/pywikipedia/login.py 2009-06-11 17:04:18 UTC (rev 6951) +++ trunk/pywikipedia/login.py 2009-06-11 17:14:51 UTC (rev 6952) @@ -223,8 +223,7 @@ ("my_sysop_user", "my_sysop_password") ("en", "wikipedia", "my_en_user", "my_en_pass") """ - import wikipediatools - file = open("%s/%s" % (wikipediatools.get_base_dir(), config.password_file) ) + file = open(wikipedia.config.datafilepath(config.password_file)) for line in file: if not line.strip(): continue entry = eval(line)
pywikipedia-svn@lists.wikimedia.org