We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5078e07 commit 3cc85c6Copy full SHA for 3cc85c6
html5lib/tests/support.py
@@ -2,10 +2,19 @@
2
import sys
3
import glob
4
5
-import html5lib
+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
14
+
15
from html5lib import html5parser, treebuilders
16
-base_path = os.path.split(__file__)[0]
17
18
if os.path.exists(os.path.join(base_path, 'testdata')):
19
#release
20
test_dir = os.path.join(base_path, 'testdata')
0 commit comments