Ignore:
Timestamp:
Nov 20, 2018 10:55:05 AM (6 years ago)
Author:
Jeff Krzywon <jkrzywon@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
c7c8143
Parents:
c222c27
Message:

Code cleanup and py3 compatibility fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/gui_manager.py

    r9f45f83 r9220e89c  
    25802580            # Instantiate a loader 
    25812581            loader = Loader() 
    2582             if os.path.splitext(mypath)[1].lower() == '.dat': 
     2582            ext = os.path.splitext(mypath)[1].lower() 
     2583            if ext == '.dat': 
    25832584                # Make sure the ext included in the file name 
    25842585                # especially on MAC 
    25852586                fileName = os.path.splitext(path)[0] + ext_format 
    25862587                loader.save(fileName, data, ext_format) 
    2587             elif os.path.splitext(mypath)[1].lower() == '.h5': 
     2588            elif ext == '.h5': 
    25882589                # Make sure the ext included in the file name 
    25892590                # especially on MAC 
Note: See TracChangeset for help on using the changeset viewer.