This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _winreg, os, sys | |
import win32api, win32con | |
import subprocess | |
from pywinauto import application | |
def deactivate(): | |
windir = os.getenv("windir", "C:\Windows") | |
if os.path.exists(windir + "\system32\WPA.dbl"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def deps(self, id): | |
def getMoreDeps(id, prevdeps=None): | |
deps = self.get(id)[0].depends | |
if prevdeps is None: | |
prevdeps = list() | |
for dep in deps: | |
prevdeps.extend(getMoreDeps(dep, prevdeps)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getMoreDeps(id, prevdeps=None): | |
deps = self.get(id)[0].depends | |
if prevdeps is None: | |
prevdeps = list() | |
for dep in deps: | |
if not dep in prevdeps: | |
getMoreDeps(dep, prevdeps) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
def deps(self, id): | |
def getMoreDeps(id, prevdeps=list()): | |
deps = self.get(id)[0].depends | |
for dep in deps: | |
if not dep in prevdeps: | |
prevdeps = getMoreDeps(dep, prevdeps) | |
prevdeps.extend(deps) |
NewerOlder