def get_data_dir( example_filename ):

    if 'mayavi2' in sys.argv[0]:
        if isdir('data'):
            return 'data'
        filename = sys.argv[-1]
        dir_name = join(dirname(abspath(filename)), 'data')
        if isdir(dir_name):
            return dir_name

        raise Exception('Run example from the example directory')

    else:
        return join(dirname(example_filename), 'data')
Return the size of the vlr object in bytes
dataset/ETHPy150Open enthought/mayavi/mayavi/scripts/util.py/get_data_dir--crossover with--dataset/ETHPy150Open grantbrown/laspy/laspy/header.py/VLR.__len__