(bundle, target)
| 103 | |
| 104 | |
| 105 | def extract_zip(bundle, target): |
| 106 | if sys.platform.startswith("win"): |
| 107 | z = zipfile.ZipFile(bundle) |
| 108 | z.extractall(target) |
| 109 | return True |
| 110 | else: |
| 111 | # Don't use zipfile on unix systems, it doesn't do permissions properly |
| 112 | return subprocess.call(["unzip", "-DD", bundle, "-d", target]) == 0 |
| 113 | |
| 114 | |
| 115 | if not os.path.exists(bn_dev_path): |