зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509904 - always use backslashes on Windows, r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D12935 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3c1675b8b0
Коммит
28ea3cc015
|
@ -58,6 +58,10 @@ except Exception:
|
|||
DEFAULT_CERT_PATH = os.path.join(os.getenv('HOMEDRIVE'), os.getenv('HOMEPATH'),
|
||||
'.mitmproxy', 'mitmproxy-ca-cert.cer')
|
||||
|
||||
# On Windows, deal with mozilla-build having forward slashes in $HOME:
|
||||
if os.name == 'nt' and '/' in DEFAULT_CERT_PATH:
|
||||
DEFAULT_CERT_PATH = DEFAULT_CERT_PATH.replace('/', '\\')
|
||||
|
||||
# to install mitmproxy certificate into Firefox and turn on/off proxy
|
||||
POLICIES_CONTENT_ON = '''{
|
||||
"policies": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче