def main(self): setupWizard = self.getSetupWizard() Downloader.wizard(setupWizard).get( "http://download.spotify.com/Spotify%20Installer.exe", "/tmp/test.exe") setupWizard.close()
def POL_Download(self): setupWindowId = self.command[2] url = self.command[3] currentDirectory = self.command[4] try: checkSum = self.command[5] except IndexError: checkSum = "" setupWindow = self.setupWindowManager.getWindow(setupWindowId) localFile = os.path.join( currentDirectory, Downloader.wizard(setupWindow).findFileNameFromURL(URL(url))) downloader = Downloader.wizard(setupWindow).get(url, localFile) if (checkSum != ""): downloader.check(checkSum)
def POL_Download(self): setupWindowId = self.command[2] url = self.command[3] currentDirectory = self.command[4] try: checkSum = self.command[5] except IndexError: checkSum = "" setupWindow = self.setupWindowManager.getWindow(setupWindowId) localFile = os.path.join(currentDirectory, Downloader.wizard(setupWindow).findFileNameFromURL(URL(url))) downloader = Downloader.wizard(setupWindow).get(url, localFile) if(checkSum != ""): downloader.check(checkSum)
def main(self): setupWizard = self.getSetupWizard() Downloader.wizard(setupWizard).get("http://download.spotify.com/Spotify%20Installer.exe", "/tmp/test.exe") setupWizard.close()