Python run.Run() Examples
The following are 12
code examples of run.Run().
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
run
, or try the search function
.
Example #1
Source File: WebDriver.py From Web-Driver-Toolkit with MIT License | 6 votes |
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()
Example #2
Source File: reveal.py From USBMap with MIT License | 5 votes |
def __init__(self): self.r = run.Run() return
Example #3
Source File: disk.py From USBMap with MIT License | 5 votes |
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()
Example #4
Source File: reveal.py From thinkpad-x1c5-hackintosh with MIT License | 5 votes |
def __init__(self): self.r = run.Run() return
Example #5
Source File: disk.py From thinkpad-x1c5-hackintosh with MIT License | 5 votes |
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()
Example #6
Source File: disk.py From gibMacOS with MIT License | 5 votes |
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()
Example #7
Source File: diskwin.py From gibMacOS with MIT License | 5 votes |
def __init__(self): self.r = run.Run() self.wmic = os.path.join(os.environ['SYSTEMDRIVE'] + "\\", "Windows", "System32", "wbem", "WMIC.exe") self._update_disks()
Example #8
Source File: dsdt.py From SSDTTime with MIT License | 5 votes |
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
Example #9
Source File: reveal.py From SSDTTime with MIT License | 5 votes |
def __init__(self): self.r = run.Run() return
Example #10
Source File: kextbuilder.py From Lilu-and-Friends with MIT License | 5 votes |
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"
Example #11
Source File: reveal.py From Lilu-and-Friends with MIT License | 5 votes |
def __init__(self): self.r = run.Run() return
Example #12
Source File: kextupdater.py From Lilu-and-Friends with MIT License | 5 votes |
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__)