Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
Iterable collection of locations.
Use provided functions to add new locations, rather that manipulating
_locations directly, in order to check for errors and to ensure the
callback is called, if given.

src/w/p/wptrunner-0.2.5/wptrunner/browser.py   wptrunner(Download)
import mozprocess
from mozprofile import FirefoxProfile, Preferences
from mozprofile.permissions import ServerLocations
from mozrunner import FirefoxRunner, B2GRunner
import mozdevice
    def start(self):
        env = os.environ.copy()
        env['MOZ_CRASHREPORTER_NO_REPORT'] = '1'
 
        locations = ServerLocations(filename=os.path.join(here, "server-locations.txt"))
    def start(self):
        locations = ServerLocations(filename=os.path.join(here, "server-locations.txt"))
 
#        preferences = self.load_prefs()
        profile = FirefoxProfile(locations=locations, proxy={"remote": moznetwork.get_ip()})#,

src/p/e/peptest-1.0/peptest/runpeptests.py   peptest(Download)
from optparse import OptionParser
from mozprofile import FirefoxProfile, ThunderbirdProfile, Profile
from mozprofile.permissions import ServerLocations
from mozrunner import FirefoxRunner, ThunderbirdRunner, Runner
from mozhttpd import MozHttpd
        # create the profile
        enable_proxy = False
        locations = ServerLocations()
        if self.options.proxyLocations:
            if not self.options.serverPath: