mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
don't die on _anki.png et al
https://anki.tenderapp.com/discussions/beta-testing/747-anki-210-beta-16/page/2#comment_43769227
This commit is contained in:
parent
8d0eb42c01
commit
ed151de19b
1 changed files with 2 additions and 2 deletions
|
@ -114,9 +114,9 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|
||||||
# catch /_anki references and rewrite them to web export folder
|
# catch /_anki references and rewrite them to web export folder
|
||||||
def _redirectWebExports(self, path):
|
def _redirectWebExports(self, path):
|
||||||
targetPath = os.path.join(os.getcwd(), "_anki")
|
targetPath = os.path.join(os.getcwd(), "_anki", "")
|
||||||
if path.startswith(targetPath):
|
if path.startswith(targetPath):
|
||||||
newPath = os.path.join(_exportFolder, path[len(targetPath)+1:])
|
newPath = os.path.join(_exportFolder, path[len(targetPath):])
|
||||||
return newPath
|
return newPath
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue