Ignore:
Timestamp:
Dec 20, 2022 3:17:16 PM (2 years ago)
Author:
toby
Message:

finish off Py3.10 updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIctrlGUI.py

    r5394 r5442  
    54585458        '''Check if the GSAS-II repository has an update for the current source files
    54595459        and perform that update if requested.
    5460         '''           
     5460        '''
    54615461        if not GSASIIpath.whichsvn():
    54625462            dlg = wx.MessageDialog(self.frame,
     
    54945494            dlg.Destroy()
    54955495            return
     5496        errmsg,warnmsg = G2gd.TestOldVersions()
     5497        if (errmsg or warnmsg):
     5498            msg = 'Based on the age of Python or an installed Python package (see below)'
     5499            msg += ' you are recommended to'
     5500            if GSASIIpath.condaTest():
     5501                msg += ' either use conda to update (see https://bit.ly/G2pkgs for version recommendations) and then update GSAS-II. Or'
     5502            msg += ' reinstall GSAS-II (see https://bit.ly/G2install), which will update both.\n\n'
     5503            if errmsg:
     5504                opt = wx.YES_NO|wx.ICON_QUESTION|wx.CANCEL|wx.NO_DEFAULT
     5505                msg += 'Error(s):\n\t'+errmsg
     5506            else:
     5507                opt = wx.YES_NO|wx.ICON_QUESTION|wx.CANCEL|wx.YES_DEFAULT
     5508            if warnmsg:
     5509                if errmsg: msg += '\n\nWarning(s):\n\t'
     5510                msg += warnmsg
     5511
     5512            msg += '\n\nContinue to update GSAS-II?'
     5513            dlg = wx.MessageDialog(self.frame, msg,'Confirm update',opt)
     5514            result = wx.ID_NO
     5515            try:
     5516                result = dlg.ShowModal()
     5517            finally:
     5518                dlg.Destroy()
     5519            if result != wx.ID_YES: return
    54965520        print ('GSAS-II version on server: '+repos)
    54975521        if local == repos:
     
    55365560                                   'conflicts arise, local changes will be '
    55375561                                   'discarded. It is also possible that the '
    5538                                    'local changes may prevent GSAS-II from running. '
     5562                                   'merge may prevent GSAS-II from running. '
    55395563                                   '\n\nPress OK to start an update if this is acceptable:',
    55405564                                   'Local GSAS-II Mods',
     
    56035627                                   'if merging is not possible, your local changes will be '
    56045628                                   'discarded. It is also possible that the '
    5605                                    'local changes my prevent GSAS-II from running. '
     5629                                   'merge may prevent GSAS-II from running. '
    56065630                                   'Press OK to continue anyway.',
    56075631                                   'Local GSAS-II Mods',
Note: See TracChangeset for help on using the changeset viewer.