From 6562188ae828f68247df834d7aeb9bd43f799996 Mon Sep 17 00:00:00 2001 From: Andreas Klauer Date: Sun, 24 Feb 2013 02:09:03 +0100 Subject: [PATCH] Support combined file extensions (*.pau.gz instead of just *.gz) --- aqt/importing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aqt/importing.py b/aqt/importing.py index 2e7d6d0cc..3410f4c63 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -255,14 +255,13 @@ def onImport(mw): importFile(mw, file) def importFile(mw, file): - ext = os.path.splitext(file)[1] importer = None done = False for i in importing.Importers: if done: break for mext in re.findall("[( ]?\*\.(.+?)[) ]", i[0]): - if ext == "." + mext: + if file.endswith("." + mext): importer = i[1] done = True break