[Python-checkins] r52698 - tracker/importer/effbot2roundup.py
erik.forsberg
python-checkins at python.org
Thu Nov 9 19:29:02 CET 2006
Author: erik.forsberg
Date: Thu Nov 9 19:29:02 2006
New Revision: 52698
Modified:
tracker/importer/effbot2roundup.py
Log:
Assume effbot's sourceforge scraper is in the subdirectory sourceforge
of the directory where effbot2roundup.py is located.
Modified: tracker/importer/effbot2roundup.py
==============================================================================
--- tracker/importer/effbot2roundup.py (original)
+++ tracker/importer/effbot2roundup.py Thu Nov 9 19:29:02 2006
@@ -4,11 +4,10 @@
# This script expects the stuff from effbot to be available in
-# ../../sourceforge
-origin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+# a subdirectory named sourceforge
-sys.path = sys.path + [os.path.normpath(os.path.join(origin_dir, "../..",
- "sourceforge"))]
+origin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+sys.path = sys.path + [os.path.join(origin_dir, "sourceforge")]
import htmlload
import extract
More information about the Python-checkins
mailing list