modify the import
This commit is contained in:
		
							parent
							
								
									71e77257b2
								
							
						
					
					
						commit
						7cb0cbf578
					
				@ -1,22 +1,2 @@
 | 
			
		||||
#-*- coding:utf-8 -*-
 | 
			
		||||
#
 | 
			
		||||
# Copyright © 2016–2017 Liang Feng <finalion@gmail.com>
 | 
			
		||||
#
 | 
			
		||||
# 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 <http://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
from .mdict import IndexBuilder as MdxBuilder
 | 
			
		||||
from .pystardict import Dictionary as StardictBuilder
 | 
			
		||||
import ankihub
 | 
			
		||||
 | 
			
		||||
@ -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'))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user