190 os.path.join(macAppBundlePath, |
190 os.path.join(macAppBundlePath, |
191 macAppBundleName), |
191 macAppBundleName), |
192 ]: |
192 ]: |
193 if os.path.exists(bundlePath): |
193 if os.path.exists(bundlePath): |
194 shutil.rmtree(bundlePath) |
194 shutil.rmtree(bundlePath) |
|
195 |
|
196 print("\nUninstallation completed") |
195 except (IOError, OSError) as msg: |
197 except (IOError, OSError) as msg: |
196 sys.stderr.write( |
198 sys.stderr.write( |
197 'Error: {0}\nTry uninstall with admin rights.\n'.format(msg)) |
199 'Error: {0}\nTry uninstall with admin rights.\n'.format(msg)) |
198 exit(7) |
200 exit(7) |
199 |
201 |