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,6 +47,9 @@ def httpCon():
|
|||
os.path.dirname(os.path.abspath(sys.argv[0])),
|
||||
"../Resources/ankiweb.certs")
|
||||
else:
|
||||
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(
|
||||
timeout=HTTP_TIMEOUT, ca_certs=certs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue