21 lines
943 B
Diff
21 lines
943 B
Diff
--- test/DocutilsTestSupport.py
|
|
+++ test/DocutilsTestSupport.py
|
|
@@ -51,14 +51,9 @@
|
|
|
|
testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir)
|
|
os.chdir(testroot)
|
|
-if sys.version_info >= (3, 0):
|
|
- sys.path.insert(0, os.path.normpath(os.path.join(testroot,
|
|
- '..', 'build', 'lib')))
|
|
- sys.path.append(os.path.normpath(os.path.join(testroot, '..',
|
|
- 'build', 'lib', 'extras')))
|
|
-else:
|
|
- sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..')))
|
|
- sys.path.append(os.path.normpath(os.path.join(testroot, '..', 'extras')))
|
|
+builddir = 'build-%d.%d' % (sys.version_info.major, sys.version_info.minor)
|
|
+sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..', builddir, 'lib')))
|
|
+sys.path.append(os.path.normpath(os.path.join(testroot, '..', builddir, 'lib', 'extras')))
|
|
sys.path.insert(0, testroot)
|
|
|
|
try:
|