Changeset 81875d2 in sasview for sansview


Ignore:
Timestamp:
Nov 2, 2009 9:07:10 AM (15 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:
554971e
Parents:
c41e268
Message:

fixed xml reader loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/setup_mac.py

    r01255b5 r81875d2  
    1212 
    1313DATA_FILES = [] 
     14RESOURCES_FILES = [] 
    1415 
    1516#Periodictable data file 
    16 DATA_FILES = periodictable.xsf.setup_data_files() 
     17DATA_FILES = periodictable.data_files() 
    1718 
    18 #xml data files 
    19  
    20 f = os.path.join(DataLoader.readers.get_data_path(),'default.xml') 
    21 if os.path.isfile(f): 
    22     DAT_FILES.append(('.',[f])) 
     19#CANSAxml reader data files 
     20RESOURCES_FILES.append(os.path.join(DataLoader.readers.get_data_path(),'defaults.xml')) 
    2321 
    2422APP = ['sansview.py'] 
    2523DATA_FILES = ['images','test','plugins','doc'] 
    26 OPTIONS = {'argv_emulation': True,'packages': ['lxml','periodictable'], 
    27            'frameworks':['/usr/lib/libxml2.2.dylib'], 
    28            #'plist': dict(LSPrefersPPC=True) 
     24OPTIONS = {'argv_emulation': True, 
     25           'packages': ['lxml','periodictable'], 
     26           'iconfile': 'images/ball.icns', 
     27           'frameworks':['/usr/local/lib/libxml2.2.dylib'], ##This dir path could be /usr/lib/yourlibxmlfile depending on the system. 
     28           'resources': RESOURCES_FILES 
    2929           } 
    3030 
Note: See TracChangeset for help on using the changeset viewer.