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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
Returns the application version information as a dict. If binary path is
omitted then the current directory is checked for the existance of an
application.ini file. If not found, then it is assumed the target
application is a remote Firefox OS instance.

:param binary: Path to the binary for the application
:param sources: Path to the sources.xml file (Firefox OS)
:param dm_type: Device manager type. Must be 'adb' or 'sut' (Firefox OS)
:param host: Host address of remote Firefox OS instance (SUT)

        def get_version(binary=None, sources=None, dm_type=None, host=None):
    """
    Returns the application version information as a dict. If binary path is
    omitted then the current directory is checked for the existance of an
    application.ini file. If not found, then it is assumed the target
    application is a remote Firefox OS instance.

    :param binary: Path to the binary for the application
    :param sources: Path to the sources.xml file (Firefox OS)
    :param dm_type: Device manager type. Must be 'adb' or 'sut' (Firefox OS)
    :param host: Host address of remote Firefox OS instance (SUT)
    """
    try:
        version = LocalVersion(binary)
        if version._info.get('application_name') == 'B2G':
            version = LocalB2GVersion(binary, sources=sources)
    except LocalAppNotFoundError:
        version = RemoteB2GVersion(sources=sources, dm_type=dm_type, host=host)
    return version._info
        


src/m/a/marionette_client-0.7.7/marionette/runner/mixins/reporting.py   marionette_client(Download)
        generated = datetime.datetime.now()
        version = mozversion.get_version(
            binary=self.bin, sources=self.sources,
            dm_type=os.environ.get('DM_TRANS', 'adb'))
        date_format = '%d %b %Y %H:%M:%S'

src/b/2/b2gperf-0.25/b2gperf/b2gperf.py   b2gperf(Download)
        self.device.add_device_manager(dm)
 
        version = mozversion.get_version(sources=sources, dm_type='adb')
        self.ancillary_data['build_revision'] = version.get('build_changeset')
        self.ancillary_data['gaia_revision'] = version.get('gaia_changeset')

src/b/2/b2gperf-HEAD/b2gperf/b2gperf.py   b2gperf(Download)
        self.device.add_device_manager(dm)
 
        version = mozversion.get_version(sources=sources, dm_type='adb')
        self.ancillary_data['build_revision'] = version.get('build_changeset')
        self.ancillary_data['gaia_revision'] = version.get('gaia_changeset')

src/m/o/mozversion-0.4/mozversion/__init__.py   mozversion(Download)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
 
from mozversion import cli, get_version