Changeset 5523 for trunk


Ignore:
Timestamp:
Mar 25, 2023 11:11:14 AM (2 years ago)
Author:
vondreele
Message:

force RMCProfile files to always be written to directory containing gpx file.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIctrlGUI.py

    r5508 r5523  
    38673867################################################################################
    38683868def GetImportFile(G2frame, message, defaultDir="", defaultFile="",
    3869                       style=wx.FD_OPEN, parent=None,
    3870                       *args, **kwargs):
     3869    style=wx.FD_OPEN, parent=None,*args, **kwargs):
    38713870    '''Uses a customized dialog that gets files from the appropriate import directory.
    38723871    Arguments are used the same as in :func:`wx.FileDialog`. Selection of
     
    38873886    #    print('debug: GetImportFile from '+defaultDir)
    38883887    #    print('debug: GetImportFile pth '+pth)
    3889     dlg = wx.FileDialog(parent, message, defaultDir, defaultFile, *args,
    3890                         style=style, **kwargs)
     3888    dlg = wx.FileDialog(parent, message, defaultDir, defaultFile, *args,style=style, **kwargs)
    38913889#    dlg.CenterOnParent()
    38923890    if not defaultDir and pth: dlg.SetDirectory(pth)
     
    39313929            return pth
    39323930        elif GSASIIpath.GetConfigValue('debug'):
    3933             print('Ignoring Config Import_directory value: '+
    3934                       GSASIIpath.GetConfigValue('Import_directory'))
     3931            print('Ignoring Config Import_directory value: '+GSASIIpath.GetConfigValue('Import_directory'))
    39353932    if G2frame.LastImportDir:
    39363933        if os.path.exists(G2frame.LastImportDir):
     
    53165313    '''
    53175314    pth = GetExportPath(G2frame)
    5318     dlg = wx.DirDialog(
    5319             G2frame, 'Input directory where file(s) will be written', pth,
    5320             wx.DD_DEFAULT_STYLE)
     5315    dlg = wx.DirDialog(G2frame,'Input directory where file(s) will be written',pth,wx.DD_DEFAULT_STYLE)
    53215316    dlg.CenterOnParent()
    53225317    try:
  • TabularUnified trunk/GSASIIphsGUI.py

    r5522 r5523  
    64246424        if not G2frame.GSASprojectfile:     #force a project save
    64256425            G2frame.OnFileSaveas(event)
     6426        dName = G2frame.LastGPXdir           
     6427        os.chdir(dName)
    64266428        if G2frame.RMCchoice == 'fullrmc':
    64276429            RMCPdict = data['RMC']['fullrmc']
     
    64476449                G2frame.dataWindow.FRMCDataEdit.Enable(G2G.wxID_RUNRMC,False)
    64486450                return
     6451            dName = G2frame.LastGPXdir           
    64496452            pName = generalData['Name']
    64506453            G2frame.dataWindow.FRMCDataEdit.Enable(G2G.wxID_RUNRMC,True)
  • TabularUnified trunk/GSASIIpwd.py

    r5509 r5523  
    29212921    inst = PWDdata['Instrument Parameters'][0]
    29222922    try:
     2923        pName = Phase['General']['Name']
    29232924        refList = PWDdata['Reflection Lists'][Name]['RefList']
    29242925    except TypeError:
Note: See TracChangeset for help on using the changeset viewer.