Did I find the right examples for you? yes no

All Samples(181)  |  Call(177)  |  Derive(0)  |  Import(4)
Tries to determine the name of the Linux OS distribution name.

The function first looks for a distribution release file in
/etc and then reverts to _dist_try_harder() in case no
suitable files are found.

Returns a tuple (distname,version,id) which default to the
args given as parameters.

        def dist(distname='',version='',id='',

         supported_dists=_supported_dists):

    """ Tries to determine the name of the Linux OS distribution name.

        The function first looks for a distribution release file in
        /etc and then reverts to _dist_try_harder() in case no
        suitable files are found.

        Returns a tuple (distname,version,id) which default to the
        args given as parameters.

    """
    return linux_distribution(distname, version, id,
                              supported_dists=supported_dists,
                              full_distribution_name=0)
        


src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_1.py   BeginningPythonExercises(Download)
profile = [
platform.architecture(),
platform.dist(),
platform.libc_ver(),
platform.mac_ver(),

src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_2.py   BeginningPythonExercises(Download)
    def linuxType(self):
        """Uses various methods to determine Linux Type"""
        if platform.dist()[0] == self.rhel:
            return self.rhel
        elif platform.uname()[1] == self.ubu:

src/m/i/miro-HEAD/tv/linux/plat/resources.py   miro(Download)
    """
    osname = ["%s %s" % (platform.uname()[0], platform.machine())]
    dist = platform.dist("Unknown", "Unknown", "Unknown")[0:2]
    osname.append(" ".join(dist))
    osname = "; ".join([_clean_piece(s) for s in osname])

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/misc.py   oe-core(Download)
    except:
        (dist, ver, id) = platform.dist( \
                              supported_dists = support_dists)
 
    return (dist, ver, id)

src/m/i/mic-HEAD/mic/utils/misc.py   mic(Download)
    except:
        (dist, ver, id) = platform.dist( \
                              supported_dists = support_dists)
 
    return (dist, ver, id)

src/r/e/RedJack-0.3.0/redjack/agent.py   RedJack(Download)
 
        if caps['system'] == "Linux":
            caps['linux_dist'] = "-".join(platform.dist())
            for key in ["USER", "GROUP", "HOME", "PATH", "LANG", "OSTYPE", "PYTHONPATH", "HOST", "MACHTYPE"]:
                if os.environ.has_key(key):

src/p/y/pyhai-0.1.3/pyhai/plugins/linux/system.py   pyhai(Download)
try:
    import platform.linux_distribution as distribution
except: import platform.dist as distribution
import logging
 
            'system': platform.system(),
            'version': platform.version(),
            'distribution': distribution(),
            }
 

src/g/s/gsdview-HEAD/gsdview/utils.py   gsdview(Download)
        platform_info.append(libc_ver)
 
    if platform.dist() != ('', '', ''):
        platform_info.append('GNU/Linux: %s\n' % ' '.join(platform.dist()))
    elif platform.mac_ver() != ('', ('', '', ''), ''):

src/d/d/dd-agent-HEAD/config.py   dd-agent(Download)
 
    if Platform.is_linux(platf):
        systemStats['nixV'] = platform.dist()
 
    elif Platform.is_darwin(platf):

src/s/u/sunpy-HEAD/benchmarks/benchmark.py   sunpy(Download)
                  "|\t%s") % (
            title, platform.python_version(), platform.python_build()[0], 
            platform.system(), " ".join(platform.dist()), 
            platform.processor(), platform.machine(), 
            datetime.datetime.today().ctime()

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