comparison 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
comparison
equal deleted inserted replaced
3909:b9deb538ff6c 3910:6fbfffffc4d1
12 12
13 import os, sys, shutil, errno 13 import os, sys, shutil, errno
14 14
15 filename = globals().get("__file__") or sys.argv[0] 15 filename = globals().get("__file__") or sys.argv[0]
16 moinpath = os.path.abspath(os.path.join(os.path.dirname(filename), os.pardir, os.pardir)) 16 moinpath = os.path.abspath(os.path.join(os.path.dirname(filename), os.pardir, os.pardir))
17 sys.path.insert(0, moinpath)
18 17
19 from MoinMoin.support import tarfile 18 from MoinMoin.support import tarfile
20 19
21 WIKI = os.path.abspath(os.path.join(moinpath, 'tests', 'wiki')) 20 WIKI = os.path.abspath(os.path.join(moinpath, 'tests', 'wiki'))
22 SHARE = os.path.abspath(os.path.join(moinpath, 'wiki')) 21 SHARE = os.path.abspath(os.path.join(moinpath, 'wiki'))
60 removeTestWiki() 59 removeTestWiki()
61 copyData() 60 copyData()
62 untarUnderlay() 61 untarUnderlay()
63 62
64 if __name__ == '__main__': 63 if __name__ == '__main__':
64 sys.path.insert(0, moinpath)
65 run() 65 run()
66 66