Changeset 988deab in sasview for installers


Ignore:
Timestamp:
Apr 20, 2018 9:07:13 AM (20 months ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
38f838e
Parents:
aefde77
Message:

modified the installer generator script for python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installers/installer_generator.py

    • Property mode changed from 100755 to 100644
    r0595bb7 r988deab  
    5555        for item in wild_cards: 
    5656            #['All (*.*)|*.*'] 
    57             file_type, ext = string.split(item, "|*", 1) 
     57            file_type, ext = item.split("|*", 1) 
    5858            if ext.strip() not in ['.*', ''] and ext.strip() not in list_data: 
    5959                list_data.append((ext, 'string', file_type)) 
     
    6161        pass 
    6262    try: 
    63         file_type, ext = string.split(local_config.APPLICATION_WLIST, "|*", 1) 
     63        file_type, ext = local_config.APPLICATION_WLIST.split("|*", 1) 
    6464        if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 
    6565            list_app.append((ext, 'string', file_type)) 
     
    6868    try: 
    6969        for item in local_config.PLUGINS_WLIST: 
    70             file_type, ext = string.split(item, "|*", 1) 
     70            file_type, ext = item.split("|*", 1) 
    7171            if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 
    7272                list_app.append((ext, 'string', file_type)) 
     
    8383    msg = "" 
    8484    if data_extension is not None and data_extension: 
     85        msg = "\n\n[Registry]\n" 
    8586        openwithlist = "OpenWithList\%s" % str(APPLICATION) 
    86         msg = "\n\n[Registry]\n" 
    8787        for (ext, type, _) in data_extension: 
    8888            list = os.path.join(ext, openwithlist) 
     
    192192    return msg 
    193193 
    194 dist_path = "dist" 
     194dist_path = "dist\sasview" 
    195195def write_file(): 
    196196    """ 
     
    200200    msg += """Source: "%s\%s";\t""" % (dist_path, str(APPLICATION)) 
    201201    msg += """DestDir: "{app}";\tFlags: ignoreversion\n""" 
    202     msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 
     202    msg += """Source: "dist\sasview\*";\tDestDir: "{app}";\t""" 
    203203    msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 
    204     msg += """Source: "dist\plugin_models\*";\tDestDir: "{userdesktop}\..\.sasview\plugin_models";\t""" 
     204    msg += """Source: "dist\sasview\plugin_models\*";\tDestDir: "{userdesktop}\..\.sasview\plugin_models";\t""" 
    205205    msg += """Flags: recursesubdirs createallsubdirs\n""" 
    206     msg += """Source: "dist\compiled_models\*";\tDestDir: "{userdesktop}\..\.sasmodels\compiled_models";\t""" 
    207     msg += """Flags: recursesubdirs createallsubdirs\n""" 
    208     msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userdesktop}\..\.sasview\config";\t""" 
     206    msg += """Source: "dist\sasview\custom_config.py";\tDestDir: "{userdesktop}\..\.sasview\config";\t""" 
    209207    msg += """Flags: recursesubdirs createallsubdirs\n""" 
    210208    #msg += """Source: "dist\default_categories.json";    DestDir: "{userdesktop}\..\.sasview";\t""" 
Note: See TracChangeset for help on using the changeset viewer.