# file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Script that launches profiles creation. """ import os import argparse import asyncio import sys import shutil # easier than setting PYTHONPATH in various platforms if __name__ == "__main__": sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from condprof.check_install import check # NOQA check() # NOQA from condprof.creator import ProfileCreator # NOQA from condprof.desktop import DesktopEnv # NOQA from condprof.android import AndroidEnv # NOQA from condprof.changelog import Changelog # NOQA from condprof.scenarii import scenarii # NOQA from condprof.util import ( LOG, ERROR, get_version, get_current_platform, extract_from_dmg, ) # NOQA from condprof.customization import get_customizations # NOQA from condprof.client import read_changelog, ProfileNotFoundError # NOQA
# License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Script that launches profiles creation. """ import os import argparse import sys # easier than setting PYTHONPATH in various platforms if __name__ == "__main__": sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from condprof.check_install import check # NOQA if "MANUAL_MACH_RUN" not in os.environ: check() PY3 = sys.version_info.major == 3 if PY3: from condprof import patch # noqa def main(args=sys.argv[1:]): parser = argparse.ArgumentParser(description="Profile Creator") parser.add_argument("archive", help="Archives Dir", type=str, default=None) parser.add_argument("--firefox", help="Firefox Binary", type=str, default=None) parser.add_argument("--scenario", help="Scenario to use", type=str, default="all") parser.add_argument( "--profile", help="Existing profile Dir", type=str, default=None )