Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _exec_shell(self, url, shpath, download_dir):
urllib.urlretrieve(url, shpath)
internals.chmod(shpath)
subprocess.call(['sudo', shpath, download_dir])