From 7cb0cbf57860d4e911f61075f52136ea0454c612 Mon Sep 17 00:00:00 2001 From: "St.Huang" Date: Tue, 3 Jul 2018 12:01:40 +0800 Subject: [PATCH] modify the import --- src/fastwq/libs/__init__.py | 20 -------------------- src/fastwq/ui.py | 4 ++-- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/fastwq/libs/__init__.py b/src/fastwq/libs/__init__.py index 31c7ea7..f6f19c6 100644 --- a/src/fastwq/libs/__init__.py +++ b/src/fastwq/libs/__init__.py @@ -1,22 +1,2 @@ -#-*- coding:utf-8 -*- -# -# Copyright © 2016–2017 Liang Feng -# -# Support: Report an issue at https://github.com/finalion/WordQuery/issues -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# any later version; http://www.gnu.org/copyleft/gpl.html. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - from .mdict import IndexBuilder as MdxBuilder from .pystardict import Dictionary as StardictBuilder -import ankihub diff --git a/src/fastwq/ui.py b/src/fastwq/ui.py index 96463f9..9ad350d 100644 --- a/src/fastwq/ui.py +++ b/src/fastwq/ui.py @@ -462,8 +462,8 @@ class OptionsDialog(QDialog): def check_updates(): try: - from .libs import ankihub - if not ankihub.update([Endpoint.check_version]): + import libs.ankihub + if not libs.ankihub.update([Endpoint.check_version]): showInfo(_('LATEST_VERSION')) except: showInfo(_('CHECK_FAILURE'))