Changeset 3668


Ignore:
Timestamp:
Oct 11, 2018 8:24:48 AM (3 years ago)
Author:
toby
Message:

bug fix on Unicode file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3633 r3668  
    16291629                    dlg.Destroy()
    16301630            HistName = G2obj.MakeUniqueLabel(HistName,PWDRlist)
    1631             print('Read powder data '+HistName+
    1632                 ' from file '+rd.readfilename +
    1633                 ' (format: '+ rd.formatName +
    1634                 '). Inst parameters from '+rd.instmsg)
     1631            try:
     1632                print('Read powder data '+HistName+
     1633                    ' from file '+G2obj.StripUnicode(rd.readfilename) +
     1634                    ' (format: '+ rd.formatName +
     1635                    '). Inst parameters from '+G2obj.StripUnicode(rd.instmsg))
     1636            except:
     1637                print('Read powder data')
    16351638            # data are read, now store them in the tree
    16361639            Id = self.GPXtree.AppendItem(parent=self.root,text=HistName)
Note: See TracChangeset for help on using the changeset viewer.