diff MoinMoin/_tests/maketestwiki.py @ 3910:6fbfffffc4d1

Insert moins path more aggressively into sys.path to win the race against py.test, do insertions less often in make_test_wiki
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Thu, 31 Jul 2008 14:17:19 +0200
parents 48b95abf3994
children 68f8bea727e5
line wrap: on
line diff
--- a/MoinMoin/_tests/maketestwiki.py	Tue Jul 29 18:27:52 2008 +0200
+++ b/MoinMoin/_tests/maketestwiki.py	Thu Jul 31 14:17:19 2008 +0200
@@ -14,7 +14,6 @@
 
 filename = globals().get("__file__") or sys.argv[0]
 moinpath = os.path.abspath(os.path.join(os.path.dirname(filename), os.pardir, os.pardir))
-sys.path.insert(0, moinpath)
 
 from MoinMoin.support import tarfile
 
@@ -62,5 +61,6 @@
     untarUnderlay()
 
 if __name__ == '__main__':
+    sys.path.insert(0, moinpath)
     run()