If you are trying to access the band names, it is part of the metadata for the raster. For example:
ENVI> file = 'C:\TEMP\qb_boulder_msi.dat'
ENVI> raster = e.openraster(file)
ENVI> print, raster.metadata
ENVIRASTERMETADATA
BAND NAMES = 'Band 1', 'Band 2', 'Band 3', 'Band 4'
DATA GAIN VALUES = 0.30000000, 0.20000000, 0.50000000, 0.40000000
DATA OFFSET VALUES = 0.00000000, 0.00000000, 0.00000000, 0.00000000
DESCRIPTION = 'Demo QuickBird 2 data courtesy DigitalGlobe', 'Inc. Not for commercial use.'
SENSOR TYPE = 'QuickBird'
WAVELENGTH = 485.00000, 560.00000, 660.00000, 830.00000
WAVELENGTH UNITS = 'Nanometers'
ENVI> bnames=raster.metadata["band names"]
ENVI> print, bnames
Band 1 Band 2 Band 3 Band 4
ENVI> help, bnames
BNAMES STRING = Array[4]
|