File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2
2
import sys
3
3
import glob
4
4
5
- import html5lib
5
+ base_path = os .path .split (__file__ )[0 ]
<
926E
td data-grid-cell-id="diff-9ebf7581596fc356e96057b1b23c9546e4791528b86e6421cbda1515c8a44d0a-5-6-0" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">
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
+
6
15
from html5lib import html5parser , treebuilders
7
16
8
- base_path = os . path . split ( __file__ )[ 0 ]
17
+
9
18
if os .path .exists (os .path .join (base_path , 'testdata' )):
10
19
#release
11
20
test_dir = os .path .join (base_path , 'testdata' )
You can’t perform that action at this time.
0 commit comments