From 19ead15ad45df7c625042dbbeafffea6d3842a95 Mon Sep 17 00:00:00 2001 From: sthoo Date: Thu, 30 Aug 2018 16:24:10 +0800 Subject: [PATCH] 2.1.x update bug fixes --- addons21/fastwq/libs/ankihub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons21/fastwq/libs/ankihub.py b/addons21/fastwq/libs/ankihub.py index e5fd9df..4c9b3a7 100644 --- a/addons21/fastwq/libs/ankihub.py +++ b/addons21/fastwq/libs/ankihub.py @@ -81,7 +81,8 @@ def finish(self): def installZipFile(data, fname): - base = os.path.join(mw.pm.addonFolder(), 'fastwq') + #base = os.path.join(mw.pm.addonFolder(), 'fastwq') + base = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../')) if fname.endswith(".py"): path = os.path.join(base, fname) with open(path, "wb") as file: