Changeset d8e3f7c in sasview for fittingview


Ignore:
Timestamp:
Aug 16, 2012 3:12:59 PM (12 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:
5401f2a
Parents:
f866fb5
Message:

mac open file fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/report_dialog.py

    rf32d144 rd8e3f7c  
    2323FONT_VARIANT = 1 
    2424ISMAC = False 
    25  
     25ISPDF = False 
    2626if sys.platform == "win32": 
    2727    _STATICBOX_WIDTH = 450 
     
    3030    FONT_VARIANT = 0 
    3131    ISMAC = False 
     32    ISPDF = True 
    3233elif sys.platform == "darwin": 
    3334    ISMAC = True 
    34 ISPDF = True 
     35    ISPDF = True 
    3536 
    3637         
     
    199200            #open pdf 
    200201            if pdf: 
    201                 os.startfile(str(fName)) 
     202                try: 
     203                    #Windows 
     204                    os.startfile(str(fName)) 
     205                except: 
     206                    try: 
     207                        #Mac 
     208                        os.system("open %s"% fName) 
     209                    except: 
     210                        #DO not open 
     211                        pass 
    202212            #delete image file 
    203213            for num in range(self.nimages): 
Note: See TracChangeset for help on using the changeset viewer.