Revision: 6989
Author: russblau
Date: 2009-06-22 15:26:32 +0000 (Mon, 22 Jun 2009)
Log Message:
-----------
required imports (because global os is deleted during execution)
Modified Paths:
--------------
branches/rewrite/pywikibot/config2.py
Modified: branches/rewrite/pywikibot/config2.py
===================================================================
--- branches/rewrite/pywikibot/config2.py 2009-06-22 15:24:18 UTC (rev
6988)
+++ branches/rewrite/pywikibot/config2.py 2009-06-22 15:26:32 UTC (rev
6989)
@@ -550,6 +550,7 @@
from [email protected] 2002/03/18
"""
+ import os
dpath = os.path.normpath(os.path.dirname(path))
if not os.path.exists(dpath):
os.makedirs(dpath)
@@ -563,6 +564,7 @@
directories in the path that do not already exist are created.
"""
+ import os.path
return makepath(os.path.join(base_dir, *filename))
def shortpath(path):
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn