Changeset 3034


Ignore:
Timestamp:
Aug 31, 2017 10:54:11 AM (6 years ago)
Author:
vondreele
Message:

remove 'u' from file name extension use. See what happens with umlauts, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3023 r3034  
    23222322        def OnSaveLog(event):
    23232323            import cPickle
    2324             defnam = os.path.splitext(
    2325                 os.path.split(self.GSASprojectfile)[1]
    2326                 )[0]+u'.gcmd'
     2324            defnam = os.path.splitext(os.path.split(self.GSASprojectfile)[1])[0]+'.gcmd'
    23272325            dlg = wx.FileDialog(self,
    23282326                'Choose an file to save past actions', '.', defnam,
     
    23342332                    filename = dlg.GetPath()
    23352333                    # make sure extension is correct
    2336                     filename = os.path.splitext(filename)[0]+u'.gcmd'
     2334                    filename = os.path.splitext(filename)[0]+'.gcmd'
    23372335                else:
    23382336                    filename = None
     
    23542352            import cPickle
    23552353            defnam = os.path.splitext(
    2356                 os.path.split(self.GSASprojectfile)[1]
    2357                 )[0]+u'.gcmd'
     2354                os.path.split(self.GSASprojectfile)[1])[0]+'.gcmd'
    23582355            dlg = wx.FileDialog(self,
    23592356                'Choose an file to read saved actions', '.', defnam,
     
    23652362                    filename = dlg.GetPath()
    23662363                    # make sure extension is correct
    2367                     filename = os.path.splitext(filename)[0]+u'.gcmd'
     2364                    filename = os.path.splitext(filename)[0]+'.gcmd'
    23682365                else:
    23692366                    filename = None
     
    27682765        arg = sys.argv
    27692766        if len(arg) > 1 and arg[1]:
    2770             self.GSASprojectfile = os.path.splitext(arg[1])[0]+u'.gpx'
     2767            self.GSASprojectfile = os.path.splitext(arg[1])[0]+'.gpx'
    27712768            self.dirname = os.path.abspath(os.path.dirname(arg[1]))
    27722769            if self.dirname: os.chdir(self.dirname)
     
    36103607            GetGPX()
    36113608        else:
    3612             self.GSASprojectfile = os.path.splitext(filename)[0]+u'.gpx'
     3609            self.GSASprojectfile = os.path.splitext(filename)[0]+'.gpx'
    36133610            self.dirname = os.path.split(filename)[0]
    36143611
Note: See TracChangeset for help on using the changeset viewer.