Changeset 8abbb12 in sasview for prview/setup_exe.py


Ignore:
Timestamp:
Aug 12, 2011 5:27:07 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

some updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/setup_exe.py

    r807560b r8abbb12  
    6767        self.__dict__.update(kw) 
    6868        # for the versioninfo resources 
    69         self.version = "0.3" 
     69        self.version = "0.9.1" 
    7070        self.company_name = "U Tennessee" 
    7171        self.copyright = "copyright 2009" 
     
    7676# to use the MatPlotLib. 
    7777# 
     78path = os.getcwd() 
     79plugins_dir = os.path.join(path, "plugins") 
     80images_dir = os.path.join(path, "images") 
     81test_dir = os.path.join(path, "test") 
     82 
    7883matplotlibdatadir = matplotlib.get_data_path() 
    7984matplotlibdata = findall(matplotlibdatadir) 
    8085data_files = [] 
    8186 
     87import sans.guiframe as guiframe 
     88data_files += guiframe.data_files() 
     89 
    8290for f in matplotlibdata: 
    8391    dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:]) 
    8492    data_files.append((os.path.split(dirname)[0], [f])) 
    85  
     93    
     94f = 'local_config.py' 
     95if os.path.isfile(f): 
     96    data_files.append(('.', [f]))   
     97f = 'custom_config.py' 
     98if os.path.isfile(f): 
     99    data_files.append(('.', [f]))     
    86100# Copying the images directory to the distribution directory. 
    87 for f in findall('images'): 
     101for f in findall(images_dir): 
    88102    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])) 
    90104 
    91105# Copying the sample data user data 
    92 for f in findall('test'): 
     106for f in findall(test_dir): 
    93107    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])) 
    95109         
    96110# Copying the sample data user data 
    97 for f in findall('plugins'): 
     111for f in findall(plugins_dir): 
    98112    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]))   
    101114# 
    102115# packages 
Note: See TracChangeset for help on using the changeset viewer.