本文整理汇总了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()
示例2: __init__
# 需要导入模块: import run [as 别名]
# 或者: from run import Run [as 别名]
def __init__(self):
self.r = run.Run()
return
示例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()
示例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()
示例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
示例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"
示例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__)