You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WikiSearch.py
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
#-*- coding: utf-8 -*-
2
2
# import project libraries.
3
+
fromcustome_errorsimport*
4
+
sys.excepthook=my_excepthook
3
5
importwx
4
6
importjson
5
7
importnlpia2_wikipediaaswikipedia
@@ -9,7 +11,7 @@
9
11
importos
10
12
importsys
11
13
#change working dir to main exe dir
12
-
os.chdir(os.path.dirname(sys.argv[0]))
14
+
#os.chdir(os.path.dirname(sys.argv[0]))
13
15
importglobalsasg
14
16
fromview_search_dialogimportViewSearch
15
17
fromupdate_dialogimportUpdateDialog
@@ -19,11 +21,12 @@
19
21
frompackagingimportversion
20
22
fromview_search_dialogimport*
21
23
24
+
22
25
#Set language for main window
23
26
_=SetLanguage(Settings().ReadSettings())
24
27
25
28
# information of program
26
-
CurrntVersion="1.3.0"
29
+
CurrntVersion="1.4.0"
27
30
ProgramName="WikiSearch"
28
31
ProgramDescription=_("With this program, you can search or browse any Wikipedia article. site: https://github.com/tecwindow/WikiSearch")
0 commit comments