Did I find the right examples for you? yes no

All Samples(279)  |  Call(274)  |  Derive(0)  |  Import(5)
Get MacOS version information and return it as tuple (release,
versioninfo, machine) with versioninfo being a tuple (version,
dev_stage, non_release_version).

Entries which cannot be determined are set to the paramter values
which default to ''. All tuple entries are strings.

        def mac_ver(release='',versioninfo=('','',''),machine=''):

    """ Get MacOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).

        Entries which cannot be determined are set to the paramter values
        which default to ''. All tuple entries are strings.
    """

    # First try reading the information from an XML file which should
    # always be present
    info = _mac_ver_xml()
    if info is not None:
        return info

    # If that doesn't work for some reason fall back to reading the
    # information using gestalt calls.
    info = _mac_ver_gestalt()
    if info is not None:
        return info

    # If that also doesn't work return the default values
    return release,versioninfo,machine
        


src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_1.py   BeginningPythonExercises(Download)
platform.dist(),
platform.libc_ver(),
platform.mac_ver(),
platform.machine(),
platform.node(),

src/g/i/ginga-HEAD/examples/matplotlib/example5_mpl.py   ginga(Download)
           'TkAgg', 'QtAgg', 'FltkAgg', 'WX']
# Force a specific toolkit on mac
macos_ver = platform.mac_ver()[0]
if len(macos_ver) > 0:
    # change this to "pass" if you want to force a different backend

src/g/i/ginga-HEAD/examples/matplotlib/example4_mpl.py   ginga(Download)
           'TkAgg', 'QtAgg', 'FltkAgg', 'WX']
# Force a specific toolkit on mac
macos_ver = platform.mac_ver()[0]
if len(macos_ver) > 0:
    # change this to "pass" if you want to force a different backend

src/a/u/autopep8-1.0.1/test/example_with_reduce.py   autopep8(Download)
def _macosx_vers(_cache=[]):
    if not _cache:
        import platform
        version = platform.mac_ver()[0]
        # fallback for MacPorts

src/a/u/autopep8-HEAD/test/example_with_reduce.py   autopep8(Download)
def _macosx_vers(_cache=[]):
    if not _cache:
        import platform
        version = platform.mac_ver()[0]
        # fallback for MacPorts

src/p/a/pave-0.69/pave/inspector.py   pave(Download)
        py_vert=p.python_version_tuple(),os_release=p.release(),
        system=p.system(),version=p.version(),win_vers=p.win32_ver(),
        mac_vers=p.mac_ver(),linux_dist=p.linux_distribution(),
    )
    return details

src/g/s/gsdview-HEAD/gsdview/utils.py   gsdview(Download)
    if platform.dist() != ('', '', ''):
        platform_info.append('GNU/Linux: %s\n' % ' '.join(platform.dist()))
    elif platform.mac_ver() != ('', ('', '', ''), ''):
        platform_info.append('Mac OS X: %s\n' % platform.mac_ver()[0])
    elif platform.win32_ver() != ('', '', '', ''):

src/g/r/GraphLab-Create-0.2.0/graphlab_util/metric_tracker.py   GraphLab-Create(Download)
      self._sys_info['libc_version'] = self._tup_to_flat_str(platform.libc_ver())
    elif self._sys_info['system'] == 'Darwin':
      self._sys_info['os_version'] = self._tup_to_flat_str(platform.mac_ver())
    elif self._sys_info['system'] == 'Windows':
      self._sys_info['os_version'] = self._tup_to_flat_str(platform.win32_ver())

src/c/a/calibre-HEAD/src/calibre/debug.py   calibre(Download)
            out('Windows:', platform.win32_ver())
        elif isosx:
            out('OSX:', platform.mac_ver())
        else:
            out('Linux:', platform.linux_distribution())

src/r/e/RedJack-0.3.0/redjack/agent.py   RedJack(Download)
                caps[key] = os.environ[key]
        elif caps['system'] == "Mac":
            caps['mac_ver'] = platform.mac_ver()
 
        self._check_prog("python", "python -V", lambda t: t.split()[1])

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next