Did I find the right examples for you? yes no

All Samples(26)  |  Call(26)  |  Derive(0)  |  Import(0)
Version interface for Jython.

Returns a tuple (release,vendor,vminfo,osinfo) with vminfo being
a tuple (vm_name,vm_release,vm_vendor) and osinfo being a
tuple (os_name,os_version,os_arch).

Values which cannot be determined are set to the defaults
given as parameters (which all default to '').

        def java_ver(release='',vendor='',vminfo=('','',''),osinfo=('','','')):

    """ Version interface for Jython.

        Returns a tuple (release,vendor,vminfo,osinfo) with vminfo being
        a tuple (vm_name,vm_release,vm_vendor) and osinfo being a
        tuple (os_name,os_version,os_arch).

        Values which cannot be determined are set to the defaults
        given as parameters (which all default to '').

    """
    # Import the needed APIs
    try:
        import java.lang
    except ImportError:
        return release,vendor,vminfo,osinfo

    vendor = _java_getprop('java.vendor', vendor)
    release = _java_getprop('java.version', release)
    vm_name, vm_release, vm_vendor = vminfo
    vm_name = _java_getprop('java.vm.name', vm_name)
    vm_vendor = _java_getprop('java.vm.vendor', vm_vendor)
    vm_release = _java_getprop('java.vm.version', vm_release)
    vminfo = vm_name, vm_release, vm_vendor
    os_name, os_version, os_arch = osinfo
    os_arch = _java_getprop('java.os.arch', os_arch)
    os_name = _java_getprop('java.os.name', os_name)
    os_version = _java_getprop('java.os.version', os_version)
    osinfo = os_name, os_version, os_arch

    return release, vendor, vminfo, osinfo
        


src/g/r/GraphLab-Create-0.2.0/graphlab_util/metric_tracker.py   GraphLab-Create(Download)
      self._sys_info['os_version'] = self._tup_to_flat_str(platform.win32_ver())
    elif self._sys_info['system'] == 'Java':
      self._sys_info['os_version'] = self._tup_to_flat_str(platform.java_ver())
 
    # Python specific stuff

src/s/o/sonospy-HEAD/sonospy/brisa/core/config.py   sonospy(Download)
    if any(platform.dist()):
        return 'unix'
    if platform.java_ver()[0] or platform.java_ver()[1]:
        return 'java'
 

src/s/o/Sonar-HEAD/Backend/python-brisa/brisa/core/config.py   Sonar(Download)
    if any(platform.dist()):
        return 'unix'
    if platform.java_ver()[0] or platform.java_ver()[1]:
        return 'java'
 

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/test/test_platform.py   openvault-core(Download)
    def test_java_ver(self):
        res = platform.java_ver()
 
    def test_win32_ver(self):
        res = platform.win32_ver()

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/test/test_platform.py   plexnet(Download)
    def test_java_ver(self):
        res = platform.java_ver()
 
    def test_win32_ver(self):
        res = platform.win32_ver()

src/i/n/IncPy-HEAD/Lib/test/test_platform.py   IncPy(Download)
    def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assert_(all(res))
 

src/s/l/SlopPy-HEAD/Lib/test/test_platform.py   SlopPy(Download)
    def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assert_(all(res))
 

src/f/i/Field-HEAD/Contents/lib/python/test/test_platform.py   Field(Download)
    def test_java_ver(self):
        res = platform.java_ver()
 
    def test_win32_ver(self):
        res = platform.win32_ver()

src/b/a/babble-HEAD/include/jython/Lib/test/test_platform.py   babble(Download)
    def test_java_ver(self):
        res = platform.java_ver()
 
    def test_win32_ver(self):
        res = platform.win32_ver()

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/test/test_platform.py   TrustRouter(Download)
    def test_java_ver(self):
        res = platform.java_ver()
        if sys.platform == 'java':
            self.assertTrue(all(res))
 

  1 | 2 | 3  Next