repo.or.cz
/
docutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add LatexPublishTest classes.
[docutils.git]
/
test
/
test_writers
/
__init__.py
blob
2fe79c55ca23bc09f3a8de9c751d07031144ca0c
1
import
os
2
import
os
.
path
3
import
sys
4
5
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
curdir
))
6
prev
=
''
7
while
sys
.
path
[
0
] !=
prev
:
8
try
:
9
import
DocutilsTestSupport
10
break
11
except
ImportError
:
12
prev
=
sys
.
path
[
0
]
13
sys
.
path
[
0
] =
os
.
path
.
dirname
(
prev
)
14
sys
.
path
.
pop
(
0
)