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 33import glob
44
55base_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-
176
187if os .path .exists (os .path .join (base_path , 'testdata' )):
198 #release
2514 os .path .pardir , os .path .pardir ,
2615 os .path .pardir , 'testdata' ))
2716 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 )))
2821
22+ import html5lib
23+ from html5lib import html5parser , treebuilders
2924del base_path
3025
3126import simplejson
You can’t perform that action at this time.
0 commit comments