mirror of
https://github.com/ankitects/anki.git
synced 2025-12-30 23:32:57 -05:00
locate ankiweb.certs within binary build
This commit is contained in:
parent
35a5d2ce5e
commit
dbbaba67a6
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ def httpCon():
|
||||||
os.path.dirname(os.path.abspath(sys.argv[0])),
|
os.path.dirname(os.path.abspath(sys.argv[0])),
|
||||||
"../Resources/ankiweb.certs")
|
"../Resources/ankiweb.certs")
|
||||||
else:
|
else:
|
||||||
assert 0, "Your distro has not packaged Anki correctly."
|
certs = os.path.abspath(os.path.join(
|
||||||
|
os.path.dirname(certs), "..", "ankiweb.certs"))
|
||||||
|
if not os.path.exists(certs):
|
||||||
|
assert 0, "Your distro has not packaged Anki correctly."
|
||||||
return httplib2.Http(
|
return httplib2.Http(
|
||||||
timeout=HTTP_TIMEOUT, ca_certs=certs,
|
timeout=HTTP_TIMEOUT, ca_certs=certs,
|
||||||
proxy_info=HTTP_PROXY,
|
proxy_info=HTTP_PROXY,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue