Changeset b1432b9 in sasview for sansguiframe


Ignore:
Timestamp:
Apr 18, 2012 4:58:34 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6e4d543
Parents:
ee54fcf0
Message:

fixed Batchpanel: saveas bug that always saves a file to sansview folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r7fb69f26 rb1432b9  
    450450        """ 
    451451        self._default_save_location = os.path.dirname(file_name) 
    452         file_name = os.path.basename(file_name) 
     452        name = os.path.basename(file_name) 
    453453        if data is None or file_name is None or file_name.strip() == "": 
    454454            return 
    455         _, ext = os.path.splitext(file_name) 
    456          
     455        _, ext = os.path.splitext(name) 
    457456        fd = open(file_name, 'w') 
    458457        separator = "\t" 
Note: See TracChangeset for help on using the changeset viewer.