# Copying SLD data import periodictable import logging data_files += periodictable.data_files() import sas.perspectives.fitting as fitting data_files += fitting.data_files() import sas.perspectives.calculator as calculator data_files += calculator.data_files() import sas.perspectives.invariant as invariant data_files += invariant.data_files() import sas.guiframe as guiframe data_files += guiframe.data_files() import sas.models as models data_files += models.data_files() for f in matplotlibdata: dirname = os.path.join('mpl-data', f[len(matplotlibdatadir) + 1:]) data_files.append((os.path.split(dirname)[0], [f])) # Copy the settings file for the sas.dataloader file extension associations import sas.dataloader.readers f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') if os.path.isfile(f): data_files.append(('.', [f])) f = 'custom_config.py' if os.path.isfile(f):
DATA_FILES = [] RESOURCES_FILES = [] #Periodictable data file DATA_FILES = periodictable.data_files() #invariant and calculator help doc import sas.perspectives.fitting as fitting DATA_FILES += fitting.data_files() import sas.perspectives.calculator as calculator DATA_FILES += calculator.data_files() import sas.perspectives.invariant as invariant DATA_FILES += invariant.data_files() import sas.models as models DATA_FILES += models.data_files() import sas.guiframe as guiframe DATA_FILES += guiframe.data_files() #CANSAxml reader data files RESOURCES_FILES.append(os.path.join(sas.dataloader.readers.get_data_path(),'defaults.json')) # Locate libxml2 library lib_locs = ['/usr/local/lib', '/usr/lib'] libxml_path = None for item in lib_locs: libxml_path_test = '%s/libxml2.2.dylib' % item if os.path.isfile(libxml_path_test): libxml_path = libxml_path_test if libxml_path == None: raise RuntimeError, "Could not find libxml2 on the system" APP = ['sasview.py']
DATA_FILES = [] RESOURCES_FILES = [] #Periodictable data file DATA_FILES = periodictable.data_files() #invariant and calculator help doc import sas.perspectives.fitting as fitting DATA_FILES += fitting.data_files() import sas.perspectives.calculator as calculator DATA_FILES += calculator.data_files() import sas.perspectives.invariant as invariant DATA_FILES += invariant.data_files() import sas.models as models DATA_FILES += models.data_files() import sas.guiframe as guiframe DATA_FILES += guiframe.data_files() #CANSAxml reader data files RESOURCES_FILES.append( os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json')) # Locate libxml2 library lib_locs = ['/usr/local/lib', '/usr/lib'] libxml_path = None for item in lib_locs: libxml_path_test = '%s/libxml2.2.dylib' % item if os.path.isfile(libxml_path_test): libxml_path = libxml_path_test if libxml_path == None: raise RuntimeError, "Could not find libxml2 on the system"
# Copying SLD data import periodictable import logging data_files += periodictable.data_files() import sas.perspectives.fitting as fitting data_files += fitting.data_files() import sas.perspectives.calculator as calculator data_files += calculator.data_files() import sas.perspectives.invariant as invariant data_files += invariant.data_files() import sas.guiframe as guiframe data_files += guiframe.data_files() import sas.models as models data_files += models.data_files() for f in matplotlibdata: dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:]) data_files.append((os.path.split(dirname)[0], [f])) # Copy the settings file for the sas.dataloader file extension associations import sas.dataloader.readers f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') if os.path.isfile(f): data_files.append(('.', [f])) f = 'custom_config.py' if os.path.isfile(f):