Python platform.lower() Examples
The following are 26
code examples of platform.lower().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
platform
, or try the search function
.
Example #1
Source File: tags.py From rules_pip with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): # type: (str, str, str) -> None self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #2
Source File: ReloadCam_Main.py From ReloadCam with GNU General Public License v3.0 | 5 votes |
def CleanFiles(currentPath, platform): import os, glob if platform.lower() == "windows": if len(filter(os.path.isfile, glob.glob('./*.pyc'))) > 0: os.system('del /q "' + currentPath + '*.pyc"') if len(filter(os.path.isfile, glob.glob('./*.pyo'))) > 0: os.system('del /q "' + currentPath + '*.pyo"') else: os.system("rm -rf " + currentPath + "*.pyc") os.system("rm -rf " + currentPath + "*.pyo")
Example #3
Source File: tags.py From CogAlg with MIT License | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #4
Source File: tags.py From CogAlg with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #5
Source File: setup.py From python-igraph with GNU General Public License v2.0 | 5 votes |
def is_unix_like(platform=None): """Returns whether the given platform is a Unix-like platform with the usual Unix filesystem. When the parameter is omitted, it defaults to ``sys.platform`` """ platform = platform or sys.platform platform = platform.lower() return ( platform.startswith("linux") or platform.startswith("darwin") or platform.startswith("cygwin") )
Example #6
Source File: tags.py From setuptools with MIT License | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #7
Source File: tags.py From setuptools with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #8
Source File: tags.py From setuptools with MIT License | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #9
Source File: tags.py From setuptools with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #10
Source File: tags.py From rules_pip with MIT License | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #11
Source File: tags.py From rules_pip with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #12
Source File: tags.py From rules_pip with MIT License | 5 votes |
def interpreter_name(): # type: () -> str """ Returns the name of the running interpreter. """ try: name = sys.implementation.name # type: ignore except AttributeError: # pragma: no cover # Python 2.7 compatibility. name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #13
Source File: tags.py From pex with Apache License 2.0 | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #14
Source File: tags.py From review-heatmap with GNU Affero General Public License v3.0 | 5 votes |
def interpreter_name(): # type: () -> str """ Returns the name of the running interpreter. """ try: name = sys.implementation.name # type: ignore except AttributeError: # pragma: no cover # Python 2.7 compatibility. name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #15
Source File: tags.py From review-heatmap with GNU Affero General Public License v3.0 | 5 votes |
def __init__(self, interpreter, abi, platform): # type: (str, str, str) -> None self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #16
Source File: tags.py From pip-api with Apache License 2.0 | 5 votes |
def interpreter_name(): # type: () -> str """ Returns the name of the running interpreter. """ try: name = sys.implementation.name # type: ignore except AttributeError: # pragma: no cover # Python 2.7 compatibility. name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #17
Source File: tags.py From pip-api with Apache License 2.0 | 5 votes |
def __init__(self, interpreter, abi, platform): # type: (str, str, str) -> None self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #18
Source File: tags.py From pipenv with MIT License | 5 votes |
def interpreter_name(): # type: () -> str """ Returns the name of the running interpreter. """ try: name = sys.implementation.name # type: ignore except AttributeError: # pragma: no cover # Python 2.7 compatibility. name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #19
Source File: tags.py From pipenv with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): # type: (str, str, str) -> None self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #20
Source File: tags.py From pipenv with MIT License | 5 votes |
def interpreter_name(): # type: () -> str """ Returns the name of the running interpreter. """ try: name = sys.implementation.name # type: ignore except AttributeError: # pragma: no cover # Python 2.7 compatibility. name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #21
Source File: tags.py From pipenv with MIT License | 5 votes |
def __init__(self, interpreter, abi, platform): # type: (str, str, str) -> None self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #22
Source File: tags.py From pex with Apache License 2.0 | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #23
Source File: tags.py From pex with Apache License 2.0 | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #24
Source File: tags.py From pex with Apache License 2.0 | 5 votes |
def __init__(self, interpreter, abi, platform): self._interpreter = interpreter.lower() self._abi = abi.lower() self._platform = platform.lower()
Example #25
Source File: tags.py From pex with Apache License 2.0 | 5 votes |
def _interpreter_name(): name = platform.python_implementation().lower() return INTERPRETER_SHORT_NAMES.get(name) or name
Example #26
Source File: ReloadCam_Main.py From ReloadCam with GNU General Public License v3.0 | 4 votes |
def Main(customClines, cccamPath, cccamBin): import sys, os, optparse, ReloadCam_Arguments, platform, traceback, sys try: clines = [] parser = optparse.OptionParser(description="Refrescador automatico de clines. Creado por Dagger") possibleArguments = '%s' % ','.join(map(str, ReloadCam_Arguments.Arguments)) parser.add_option('-s', '--server', dest='web', action='append', choices=ReloadCam_Arguments.Arguments, help="Especifica la web de la que quieres descargar las clines. Puedes repetir este parametro varias \ veces o usar ALL para llamar a todos o ALLTF para todos menos testious y feecline. Valores posibles: " + possibleArguments) parser.add_option('-o', '--oscam', dest='oscam', help='Traduce el cccam.cfg a formato OSCAM y lo guarda en la ruta que le indiques') parser.add_option('-r', '--norestart', dest='norestart', default=False, action='store_true', help='NO reinicia la cccam despues del refresco de clines') parser.add_option('-n', '--nodownload', dest='nodownload', default=False, action='store_true', help='NO descarga nuevas lineas. Solo reordena por ping y elimina las lineas que no funcionan') (opts, args) = parser.parse_args() if opts.nodownload is True and opts.web is not None: print "Cannot call with -s and -n at the same time" return; if opts.nodownload is False: clines = GetClinesByArgument(opts.web, customClines) if len(clines) <= 0: print "CAUTION! No new lines retrieved" WriteCccamFile(clines, cccamPath) if opts.oscam is not None: TransformToOscamFile(opts.oscam, cccamPath) if opts.norestart is False and platform.system().lower() != "windows": print "Restarting cam!" RestartCccam(cccamBin) print "Finished!!!" except Exception,e: print "Unexpected error thrown in ReloadCam_Main: " + str(e) traceback.print_exc(file=sys.stdout)