Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cc85c6

Browse files
author
James Graham
committed
Make sure html5lib is on the path for tests
1 parent5078e07 commit3cc85c6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎html5lib/tests/support.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22
importsys
33
importglob
44

5-
importhtml5lib
5+
base_path=os.path.split(__file__)[0]
6+
try:
7+
importhtml5lib
8+
exceptImportError:
9+
#development
10+
sys.path.insert(0,os.path.abspath(os.path.join(base_path,
11+
os.path.pardir,
12+
os.path.pardir)))
13+
importhtml5lib
14+
615
fromhtml5libimporthtml5parser,treebuilders
716

8-
base_path=os.path.split(__file__)[0]
17+
918
ifos.path.exists(os.path.join(base_path,'testdata')):
1019
#release
1120
test_dir=os.path.join(base_path,'testdata')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp