Changeset 19aa896 in sasview
- Timestamp:
- Aug 12, 2011 11:37:18 AM (13 years ago)
- 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
- Location:
- sansview/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/scripts/installer_generator.py
rdb7a82e r19aa896 10 10 REG_PROGRAM = """{app}\MYPROG.EXE"" ""%1""" 11 11 APPLICATION = 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__)12 AppName = str(local_config.__appname__ )# + '-'+ str(local_config.__version__) 13 AppVerName = str(local_config.__appname__ )+'-'+ str(local_config.__version__) 14 14 Dev = '' 15 15 if AppVerName.lower().count('dev') > 0: … … 33 33 #find extension for windows file assocation 34 34 #extension list need to be modified for each application 35 36 icon_path = local_config.icon_path 37 media_path = local_config.media_path 38 test_path = local_config.test_path 35 39 36 40 def find_extension(): … … 139 143 return msg 140 144 145 path, _ = os.path.split(os.getcwd()) 146 dist_path = os.path.join(path, "scripts", "dist") 141 147 def write_file(): 142 148 """ … … 144 150 """ 145 151 msg = "\n\n[Files]\n" 146 msg += """Source: " dist\%s";\t""" % str(APPLICATION)152 msg += """Source: "%s\%s";\t""" % (dist_path, str(APPLICATION)) 147 153 msg += """DestDir: "{app}";\tFlags: ignoreversion\n""" 148 154 msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 149 155 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")) 151 157 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")) 153 159 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 154 160 msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files""" -
sansview/scripts/local_config.py
r1c7acc7 r19aa896 50 50 icon_path = os.path.join(path, "images") 51 51 media_path = os.path.join(path, "media") 52 test_path = os.path.join(path, "test") 52 53 #edit the list of file state your plugin can read 53 54 APPLICATION_WLIST = 'SansView files (*.svs)|*.svs' -
sansview/scripts/setup_exe.py
rdb7a82e r19aa896 75 75 # to use the MatPlotLib. 76 76 # 77 current_dir = os.getcwd() 78 path, _ = os.path.split(current_dir) 79 plugins_dir = os.path.join(path, "plugins") 80 media_dir = os.path.join(path, "media") 81 images_dir = os.path.join(path, "images") 82 test_dir = os.path.join(path, "test") 83 77 84 matplotlibdatadir = matplotlib.get_data_path() 78 85 matplotlibdata = findall(matplotlibdatadir) 79 86 data_files = [] 87 from glob import glob 88 data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))] 89 sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT") 80 90 # Copying SLD data 81 91 import periodictable … … 107 117 data_files.append(('.', [f])) 108 118 # Copying the images directory to the distribution directory. 109 for f in findall( 'images'):119 for f in findall(images_dir): 110 120 if os.path.split(f)[0].count('.svn')==0: 111 121 data_files.append((os.path.split(f)[0], [f])) 112 122 113 123 # Copying the HTML help docs 114 for f in findall( 'media'):124 for f in findall(media_dir): 115 125 if os.path.split(f)[0].count('.svn')==0: 116 126 data_files.append((os.path.split(f)[0], [f])) 117 127 118 128 # Copying the sample data user data 119 for f in findall( 'test'):129 for f in findall(test_dir): 120 130 if os.path.split(f)[0].count('.svn')==0: 121 131 data_files.append((os.path.split(f)[0], [f])) 122 132 123 133 # Copying the sample data user data 124 for f in findall( 'plugins'):134 for f in findall(plugins_dir): 125 135 if os.path.split(f)[0].count('.svn')==0: 126 136 data_files.append((os.path.split(f)[0], [f])) … … 144 154 description = 'SansView', 145 155 script = 'sansview.py', 146 icon_resources = [(1, "images/ball.ico")],156 icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 147 157 other_resources = [(24,1,manifest)], 148 158 dest_base = "SansView"
Note: See TracChangeset
for help on using the changeset viewer.