Exemplo n.º 1
0
matplotlibdatadir = matplotlib.get_data_path()
matplotlibdata = findall(matplotlibdatadir)
data_files = []
# 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):
Exemplo n.º 2
0
sys.path.insert(0, build_path)

ICON = local_config.SetupIconFile_mac
EXTENSIONS_LIST = []
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
Exemplo n.º 3
0
sys.path.insert(0, build_path)

ICON = local_config.SetupIconFile_mac
EXTENSIONS_LIST = []
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):
Exemplo n.º 4
0
matplotlibdatadir = matplotlib.get_data_path()
matplotlibdata = findall(matplotlibdatadir)
data_files = []
# 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):