Changeset 716 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 16, 2012 11:43:35 AM (10 years ago)
Author:
vondreele
Message:

fix working directory issues for Mac/Linux?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r712 r716  
    161161        parent.Append(help='', id=wxID_DATADELETE, kind=wx.ITEM_NORMAL,
    162162            text='Delete data')
    163 #        self.Bind(wx.EVT_MENU, self.OnPwdrRead, id=wxID_PWDRREAD)
    164163        self.Bind(wx.EVT_MENU, self.OnPwdrSum, id=wxID_PWDSUM)
    165164        self.Bind(wx.EVT_MENU, self.OnReadPowderPeaks, id=wxID_READPEAKS)
    166165        self.Bind(wx.EVT_MENU, self.OnImageRead, id=wxID_IMGREAD)
    167166        self.Bind(wx.EVT_MENU, self.OnImageSum, id=wxID_IMSUM)
    168 #        self.Bind(wx.EVT_MENU, self.OnSnglRead, id=wxID_SNGLREAD)
    169167        self.Bind(wx.EVT_MENU, self.OnAddPhase, id=wxID_ADDPHASE)
    170168        self.Bind(wx.EVT_MENU, self.OnDeletePhase, id=wxID_DELETEPHASE)
     
    289287                    filename = dlg.GetPath()
    290288                    filelist = [filename,]
     289                path = dlg.GetDirectory()           # to get Mac/Linux to change directory!
     290                os.chdir(path)
    291291            else: # cancel was pressed
    292292                return []
Note: See TracChangeset for help on using the changeset viewer.