def _autoconfig_path(fx_install_dir): platform = platform_name() if platform in ("win32", "win64"): return os.path.join(fx_install_dir, "defaults", "pref", "autoconfig.js") elif platform in ("linux", "linux64"): return os.path.join(fx_install_dir, "defaults/pref/autoconfig.js") elif platform in ("macosx"): return os.path.join(fx_install_dir, "Contents/Resources/defaults/pref/autoconfig.js") else: raise Exception("Invalid platform.")
def _autoconfig_path(fx_install_dir): platform = platform_name() if platform in ('win32', 'win64'): return os.path.join(fx_install_dir, 'defaults', 'pref', 'autoconfig.js') elif platform in ('linux', 'linux64'): return os.path.join(fx_install_dir, 'defaults/pref/autoconfig.js') elif platform in ('macosx'): return os.path.join(fx_install_dir, 'Contents/Resources/defaults/pref/autoconfig.js') else: raise Exception('Invalid platform.')
def _cfg_file_path(fx_install_dir): """ Windows: defaults\pref Mac: Firefox.app/Contents/Resources/defaults/pref Linux: defaults/pref """ platform = platform_name() if platform in ("win32", "win64"): return os.path.join(fx_install_dir, "mozilla.cfg") elif platform in ("linux", "linux64"): return os.path.join(fx_install_dir, "mozilla.cfg") elif platform in ("macosx"): return os.path.join(fx_install_dir, "Contents/Resources/mozilla.cfg") else: raise Exception("Invalid platform.")
def _cfg_file_path(fx_install_dir): ''' Windows: defaults\pref Mac: Firefox.app/Contents/Resources/defaults/pref Linux: defaults/pref ''' platform = platform_name() if platform in ('win32', 'win64'): return os.path.join(fx_install_dir, 'mozilla.cfg') elif platform in ('linux', 'linux64'): return os.path.join(fx_install_dir, 'mozilla.cfg') elif platform in ('macosx'): return os.path.join(fx_install_dir, 'Contents/Resources/mozilla.cfg') else: raise Exception('Invalid platform.')
'macosx': { 'exes': { 'gittool.py': '/usr/local/bin/gittool.py', }, }, 'win32': { "exes": { 'gittool.py': [ PYTHON_WIN32, 'c:/builds/hg-shared/build/tools/buildfarm/utils/gittool.py' ], # Otherwise, depending on the PATH we can pick python 2.6 up 'python': PYTHON_WIN32, } } } config = PLATFORM_CONFIG[platform_name()] # Generic values config.update({ "find_links": [ "http://pypi.pvt.build.mozilla.org/pub", "http://pypi.pub.build.mozilla.org/pub", ], 'pip_index': False, 'virtualenv_path': 'venv', })
'PATH': '%(PATH)s:' + external_tools_path, } }, 'macosx': { 'exes': { 'gittool.py': os.path.join(external_tools_path, 'gittool.py'), }, 'env': { 'PATH': '%(PATH)s:' + external_tools_path, } }, 'win32': { "exes": { 'gittool.py': [PYTHON_WIN32, os.path.join(external_tools_path, 'gittool.py')], # Otherwise, depending on the PATH we can pick python 2.6 up 'python': PYTHON_WIN32, } } } config = PLATFORM_CONFIG[platform_name()] # Generic values config.update({ "find_links": [ "http://pypi.pvt.build.mozilla.org/pub", "http://pypi.pub.build.mozilla.org/pub", ], 'pip_index': False, 'virtualenv_path': 'venv', })