Ignore:
Timestamp:
Aug 12, 2011 11:37:18 AM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
c4af24f
Parents:
1c7acc7
Message:

modify folder path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/scripts/installer_generator.py

    rdb7a82e r19aa896  
    1010REG_PROGRAM = """{app}\MYPROG.EXE"" ""%1""" 
    1111APPLICATION = str(local_config.__appname__ )+ '.exe' 
    12 AppName  = str(local_config.__appname__ ) # + '-'+ str(local_config.__version__) 
    13 AppVerName = str(local_config.__appname__ ) + '-'+ str(local_config.__version__) 
     12AppName = str(local_config.__appname__ )# + '-'+ str(local_config.__version__) 
     13AppVerName = str(local_config.__appname__ )+'-'+ str(local_config.__version__) 
    1414Dev = '' 
    1515if AppVerName.lower().count('dev') > 0: 
     
    3333#find extension for windows file assocation 
    3434#extension list need to be modified for each application 
     35 
     36icon_path =  local_config.icon_path 
     37media_path = local_config.media_path 
     38test_path = local_config.test_path 
    3539 
    3640def find_extension(): 
     
    139143    return msg 
    140144 
     145path, _ =  os.path.split(os.getcwd()) 
     146dist_path = os.path.join(path, "scripts", "dist") 
    141147def write_file(): 
    142148    """ 
     
    144150    """ 
    145151    msg = "\n\n[Files]\n" 
    146     msg += """Source: "dist\%s";\t""" % str(APPLICATION) 
     152    msg += """Source: "%s\%s";\t""" % (dist_path, str(APPLICATION)) 
    147153    msg += """DestDir: "{app}";\tFlags: ignoreversion\n""" 
    148154    msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 
    149155    msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 
    150     msg += """Source: "images\*";\tDestDir: "{app}\%s";\t""" % str("images") 
     156    msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (icon_path, str("images")) 
    151157    msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 
    152     msg += """Source: "test\*";\tDestDir: "{app}\%s";\t""" % str("test") 
     158    msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (test_path, str("test")) 
    153159    msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 
    154160    msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files""" 
Note: See TracChangeset for help on using the changeset viewer.