Bug 1877642 - Disable browser_fullscreen-tab-close-race.js on apple_silicon !debug...
[gecko.git] / testing / mozbase / docs / mozinstall.rst
blob7db40d73de4ce1ea5ce28bbc22ced0257873cbe1
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.
8 Simple example
9 --------------
13     import mozinstall
14     import tempfile
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
21     # ...
22     mozinstall.uninstall(install_folder)
24 API Documentation
25 -----------------
27 .. automodule:: mozinstall
28    :members: is_installer, install, get_binary, uninstall,
29              InstallError, InvalidBinary, InvalidSource