Changeset 3dac5e2 in sasview


Ignore:
Timestamp:
Jan 23, 2012 1:44:31 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:
eeb8f50
Parents:
83e0aa1
Message:

changed the path of html image to the relative

File:
1 edited

Legend:

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

    rc2b0079 r3dac5e2  
    185185            #Note:The str for pic_fname shouldn't be removed. 
    186186            if self.nimages == 1: 
    187                 html = report_frame % str(pic_fname[0]) 
     187                html = report_frame % str(os.path.basename(pic_fname[0])) 
    188188            elif self.nimages == 2: 
    189                 html = report_frame % (str(pic_fname[0]), str(pic_fname[1])) 
     189                html = report_frame % (str(os.path.basename(pic_fname[0])),  
     190                                       str(os.path.basename(pic_fname[1]))) 
    190191            elif self.nimages == 3: 
    191                 html = report_frame % (str(pic_fname[0]), str(pic_fname[1]), 
    192                                           str(pic_fname[2])) 
     192                html = report_frame % (str(os.path.basename(pic_fname[0])),  
     193                                       str(os.path.basename(pic_fname[1])), 
     194                                       str(os.path.basename(pic_fname[2]))) 
    193195 
    194196            # make/open file in case of absence 
     
    233235        if ext_num == (1 - ind_cor): 
    234236            if self.nimages == 1: 
    235                 report = report_frame % pic_fname[0] 
     237                report = report_frame % os.path.basename(pic_fname[0]) 
    236238            elif self.nimages == 2: 
    237                 report = report_frame % (pic_fname[0], pic_fname[1]) 
     239                report = report_frame % (os.path.basename(pic_fname[0]),  
     240                                         os.path.basename(pic_fname[1])) 
    238241            elif self.nimages == 3: 
    239                 report = report_frame % (pic_fname[0], pic_fname[1], 
    240                                           pic_fname[2]) 
     242                report = report_frame % (os.path.basename(pic_fname[0]),  
     243                                         os.path.basename(pic_fname[1]), 
     244                                         os.path.basename(pic_fname[2])) 
    241245        f = open(fName, 'w') 
    242246        f.write(report) 
Note: See TracChangeset for help on using the changeset viewer.