Changeset 8abbb12 in sasview for prview/setup_exe.py
- Timestamp:
- Aug 12, 2011 5:27:07 PM (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:
- 2f5d888
- Parents:
- f1044e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/setup_exe.py
r807560b r8abbb12 67 67 self.__dict__.update(kw) 68 68 # for the versioninfo resources 69 self.version = "0. 3"69 self.version = "0.9.1" 70 70 self.company_name = "U Tennessee" 71 71 self.copyright = "copyright 2009" … … 76 76 # to use the MatPlotLib. 77 77 # 78 path = os.getcwd() 79 plugins_dir = os.path.join(path, "plugins") 80 images_dir = os.path.join(path, "images") 81 test_dir = os.path.join(path, "test") 82 78 83 matplotlibdatadir = matplotlib.get_data_path() 79 84 matplotlibdata = findall(matplotlibdatadir) 80 85 data_files = [] 81 86 87 import sans.guiframe as guiframe 88 data_files += guiframe.data_files() 89 82 90 for f in matplotlibdata: 83 91 dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:]) 84 92 data_files.append((os.path.split(dirname)[0], [f])) 85 93 94 f = 'local_config.py' 95 if os.path.isfile(f): 96 data_files.append(('.', [f])) 97 f = 'custom_config.py' 98 if os.path.isfile(f): 99 data_files.append(('.', [f])) 86 100 # Copying the images directory to the distribution directory. 87 for f in findall( 'images'):101 for f in findall(images_dir): 88 102 if os.path.split(f)[0].count('.svn')==0: 89 data_files.append(( os.path.split(f)[0], [f]))103 data_files.append(("images", [f])) 90 104 91 105 # Copying the sample data user data 92 for f in findall( 'test'):106 for f in findall(test_dir): 93 107 if os.path.split(f)[0].count('.svn')==0: 94 data_files.append(( os.path.split(f)[0], [f]))108 data_files.append(("test", [f])) 95 109 96 110 # Copying the sample data user data 97 for f in findall( 'plugins'):111 for f in findall(plugins_dir): 98 112 if os.path.split(f)[0].count('.svn')==0: 99 data_files.append((os.path.split(f)[0], [f])) 100 113 data_files.append(("plugins", [f])) 101 114 # 102 115 # packages
Note: See TracChangeset
for help on using the changeset viewer.