File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4646# DEBUG: Add -remove, to remove desktop shortcut
4747
4848ROBOT_ICO = "robot.ico"
49- DEFAULT_LANGUAGE = environ .get ('LANG' , '' ).split (':' )
5049
5150
5251def verify_install ():
@@ -182,6 +181,9 @@ def _create_desktop_shortcut_linux(frame=None):
182181 "fi" : r"Työpöytä" , "fr" : "Bureau" , "it" : "Scrivania" ,
183182 "pt" : r"Área de Trabalho" , "zh" : "Desktop" }
184183 user = basename (expanduser ('~' ))
184+ DEFAULT_LANGUAGE = environ .get ('LANG' , '' ).split (':' )
185+ if DEFAULT_LANGUAGE is None :
186+ DEFAULT_LANGUAGE = ['en_US' ]
185187 try :
186188 ndesktop = desktop [DEFAULT_LANGUAGE [0 ][:2 ]]
187189 directory = join (expanduser ('~' ), ndesktop )
Original file line number Diff line number Diff line change 1919 import wx .lib .agw .aui as aui
2020
2121from ..publish import RideNotebookTabChanging , RideNotebookTabChanged
22+ from wx import wxAssertionError
2223
2324
2425class NoteBook (aui .AuiNotebook ):
@@ -85,7 +86,7 @@ def on_tab_changing(self, event):
8586 oldselect = event .GetOldSelection ()
8687 try :
8788 oldtitle = self .GetPageText (oldselect )
88- except (wx . wxAssertionError , RuntimeError ):
89+ except (wxAssertionError , RuntimeError ):
8990 oldtitle = ""
9091 newindex = event .GetSelection ()
9192 newtitle = self .GetPageText (event .GetSelection ())
You can’t perform that action at this time.
0 commit comments