1 :mod:`mozinstall` --- Install and uninstall Gecko-based applications
2 ====================================================================
4 mozinstall is a small python module with several convenience methods
5 useful for installing and uninstalling a gecko-based application
6 (e.g. Firefox) on the desktop.
16 tempdir = tempfile.mkdtemp()
17 firefox_dmg = 'firefox-38.0a1.en-US.mac.dmg'
18 install_folder = mozinstall.install(src=firefox_dmg, dest=tempdir)
19 binary = mozinstall.get_binary(install_folder, 'Firefox')
20 # from here you can execute the binary directly
22 mozinstall.uninstall(install_folder)
27 .. automodule:: mozinstall
28 :members: is_installer, install, get_binary, uninstall,
29 InstallError, InvalidBinary, InvalidSource