File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 3
3
import glob
4
4
5
5
base_path = os .path .split (__file__ )[0 ]
6
- try :
7
- import html5lib
8
- except ImportError :
9
- #development
10
- sys .path .insert (0 , os .path .abspath (os .path .join (base_path ,
11
- os .path .pardir ,
12
- os .path .pardir )))
13
- import html5lib
14
-
15
- from html5lib import html5parser , treebuilders
16
-
17
6
18
7
if os .path .exists (os .path .join (base_path , 'testdata' )):
19
8
#release
25
14
os .path .pardir , os .path .pardir ,
26
15
os .path .pardir , 'testdata' ))
27
16
assert os .path .exists (test_dir ), "Test data not found"
17
+ #import the development html5lib
18
+ sys .path .insert (0 , os .path .abspath (os .path .join (base_path ,
19
+ os .path .pardir ,
20
+ os .path .pardir )))
28
21
22
+ import html5lib
23
+ from html5lib import html5parser , treebuilders
29
24
del base_path
30
25
31
26
import simplejson
You can’t perform that action at this time.
0 commit comments