当前位置: 首页>>代码示例>>Python>>正文


Python run.Run方法代码示例

本文整理汇总了Python中run.Run方法的典型用法代码示例。如果您正苦于以下问题:Python run.Run方法的具体用法?Python run.Run怎么用?Python run.Run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在run的用法示例。


在下文中一共展示了run.Run方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):

        # Check the OS first
        if not str(sys.platform) == "darwin":
            self.u.head("Incompatible System")
            print(" ")
            print("This script can only be run from macOS/OS X.")
            print(" ")
            print("The current running system is \"{}\".".format(sys.platform))
            print(" ")
            self.grab("Press [enter] to quit...")
            print(" ")
            exit(1)

        self.dl = downloader.Downloader()
        self.r  = run.Run()
        self.u  = utils.Utils()
        self.web_drivers = None
        self.os_build_number = None
        self.os_number = None
        self.wd_loc = None
        self.sip_checked = False
        self.installed_version = "Not Installed!"
        self.get_manifest()
        self.get_system_info() 
开发者ID:corpnewt,项目名称:Web-Driver-Toolkit,代码行数:27,代码来源:WebDriver.py

示例2: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
        self.r = run.Run()
        return 
开发者ID:corpnewt,项目名称:USBMap,代码行数:5,代码来源:reveal.py

示例3: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
        self.r = run.Run()
        self.diskutil = self.get_diskutil()
        self.os_version = ".".join(
            self.r.run({"args":["sw_vers", "-productVersion"]})[0].split(".")[:2]
        )
        self.full_os_version = self.r.run({"args":["sw_vers", "-productVersion"]})[0]
        if len(self.full_os_version.split(".")) < 3:
            # Add .0 in case of 10.14
            self.full_os_version += ".0"
        self.sudo_mount_version = "10.13.6"
        self.sudo_mount_types   = ["efi"]
        self.apfs = {}
        self._update_disks() 
开发者ID:corpnewt,项目名称:USBMap,代码行数:16,代码来源:disk.py

示例4: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
        self.r = run.Run()
        self.wmic = os.path.join(os.environ['SYSTEMDRIVE'] + "\\", "Windows", "System32", "wbem", "WMIC.exe")
        self._update_disks() 
开发者ID:corpnewt,项目名称:gibMacOS,代码行数:6,代码来源:diskwin.py

示例5: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self, **kwargs):
        self.dl = downloader.Downloader()
        self.r  = run.Run()
        self.u    = utils.Utils("SSDT Time")
        self.iasl_url_macOS = "https://bitbucket.org/RehabMan/acpica/downloads/iasl.zip"
        self.iasl_url_linux = "http://amdosx.kellynet.nl/iasl.zip"
        self.iasl_url_windows = "https://acpica.org/sites/acpica/files/iasl-win-20200528.zip"
        self.iasl = self.check_iasl()
        if not self.iasl:
            raise Exception("Could not locate or download iasl!")
        self.dsdt       = None
        self.dsdt_raw   = None
        self.dsdt_lines = None 
开发者ID:corpnewt,项目名称:SSDTTime,代码行数:15,代码来源:dsdt.py

示例6: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
        self.r = run.Run()
        self.git = self._get_git()
        self.xcodebuild = self._get_xcodebuild()
        self.zip = self._get_zip()
        self.temp = None
        self.debug = False
        self.fix_xib = "1060" 
开发者ID:corpnewt,项目名称:Lilu-and-Friends,代码行数:10,代码来源:kextbuilder.py

示例7: __init__

# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
        self.json_file = "hashes.json"
        self.update_min = 60
        self.r = run.Run()
        self.re = reveal.Reveal()
        self.plist = "com.corpnewt.LiluAndFriends.plist"
        self.install_path = os.path.expanduser("~/Library/LaunchAgents/" + self.plist)
        self.script_path = os.path.realpath(__file__) 
开发者ID:corpnewt,项目名称:Lilu-and-Friends,代码行数:10,代码来源:kextupdater.py


注:本文中的run.Run方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。