21 lines
947 B
Diff
21 lines
947 B
Diff
--- a/test/DocutilsTestSupport.py
|
|
+++ b/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:
|