Lines 4-9
Link Here
|
4 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
4 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
5 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 |
|
6 |
|
|
|
7 |
import os |
8 |
import sys |
9 |
|
10 |
# Let's put all subdirectories under testing/mozbase/ and python/ here |
11 |
for base in ['../testing/mozbase/', '../python/']: |
12 |
for d in next(os.walk(base))[1]: |
13 |
sys.path.append(os.path.join(os.path.dirname(__file__), '../' + base + d)) |
14 |
|
15 |
# And finally config/ itself |
16 |
sys.path.append(os.path.join(os.path.dirname(__file__), '../../config')) |
17 |
|
7 |
from mozprofile import FirefoxProfile, Profile, Preferences |
18 |
from mozprofile import FirefoxProfile, Profile, Preferences |
8 |
from mozprofile.permissions import ServerLocations |
19 |
from mozprofile.permissions import ServerLocations |
9 |
from mozrunner import FirefoxRunner, CLI |
20 |
from mozrunner import FirefoxRunner, CLI |
Lines 11-18
Link Here
|
11 |
import json |
22 |
import json |
12 |
import socket |
23 |
import socket |
13 |
import threading |
24 |
import threading |
14 |
import os |
|
|
15 |
import sys |
16 |
import shutil |
25 |
import shutil |
17 |
import tempfile |
26 |
import tempfile |
18 |
from datetime import datetime |
27 |
from datetime import datetime |