Changeset 19aa896 in sasview


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

Location:
sansview/scripts
Files:
3 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""" 
  • sansview/scripts/local_config.py

    r1c7acc7 r19aa896  
    5050icon_path = os.path.join(path, "images") 
    5151media_path = os.path.join(path, "media") 
     52test_path = os.path.join(path, "test") 
    5253#edit the list of file state your plugin can read 
    5354APPLICATION_WLIST = 'SansView files (*.svs)|*.svs' 
  • sansview/scripts/setup_exe.py

    rdb7a82e r19aa896  
    7575# to use the MatPlotLib. 
    7676# 
     77current_dir = os.getcwd() 
     78path, _ = os.path.split(current_dir) 
     79plugins_dir = os.path.join(path, "plugins") 
     80media_dir = os.path.join(path, "media") 
     81images_dir = os.path.join(path, "images") 
     82test_dir = os.path.join(path, "test") 
     83 
    7784matplotlibdatadir = matplotlib.get_data_path() 
    7885matplotlibdata = findall(matplotlibdatadir) 
    7986data_files = [] 
     87from glob import glob 
     88data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))] 
     89sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT") 
    8090# Copying SLD data 
    8191import periodictable 
     
    107117    data_files.append(('.', [f])) 
    108118# Copying the images directory to the distribution directory. 
    109 for f in findall('images'): 
     119for f in findall(images_dir): 
    110120    if os.path.split(f)[0].count('.svn')==0: 
    111121        data_files.append((os.path.split(f)[0], [f])) 
    112122 
    113123# Copying the HTML help docs 
    114 for f in findall('media'): 
     124for f in findall(media_dir): 
    115125    if os.path.split(f)[0].count('.svn')==0: 
    116126        data_files.append((os.path.split(f)[0], [f])) 
    117127 
    118128# Copying the sample data user data 
    119 for f in findall('test'): 
     129for f in findall(test_dir): 
    120130    if os.path.split(f)[0].count('.svn')==0: 
    121131        data_files.append((os.path.split(f)[0], [f])) 
    122132         
    123133# Copying the sample data user data 
    124 for f in findall('plugins'): 
     134for f in findall(plugins_dir): 
    125135    if os.path.split(f)[0].count('.svn')==0: 
    126136        data_files.append((os.path.split(f)[0], [f])) 
     
    144154    description = 'SansView', 
    145155    script = 'sansview.py', 
    146     icon_resources = [(1, "images/ball.ico")], 
     156    icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 
    147157    other_resources = [(24,1,manifest)], 
    148158    dest_base = "SansView" 
Note: See TracChangeset for help on using the changeset viewer.