mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Support combined file extensions (*.pau.gz instead of just *.gz)
This commit is contained in:
parent
000efed5cd
commit
6562188ae8
1 changed files with 1 additions and 2 deletions
|
@ -255,14 +255,13 @@ def onImport(mw):
|
||||||
importFile(mw, file)
|
importFile(mw, file)
|
||||||
|
|
||||||
def importFile(mw, file):
|
def importFile(mw, file):
|
||||||
ext = os.path.splitext(file)[1]
|
|
||||||
importer = None
|
importer = None
|
||||||
done = False
|
done = False
|
||||||
for i in importing.Importers:
|
for i in importing.Importers:
|
||||||
if done:
|
if done:
|
||||||
break
|
break
|
||||||
for mext in re.findall("[( ]?\*\.(.+?)[) ]", i[0]):
|
for mext in re.findall("[( ]?\*\.(.+?)[) ]", i[0]):
|
||||||
if ext == "." + mext:
|
if file.endswith("." + mext):
|
||||||
importer = i[1]
|
importer = i[1]
|
||||||
done = True
|
done = True
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue