Changeset 285


Ignore:
Timestamp:
01/24/05 17:38:16 (20 years ago)
Author:
mar637
Message:

added test for $DISPLAY env variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r278 r285  
    214214from asapmath import *
    215215from scantable import *
     216
    216217if rcParams['useplotter']:
    217     print "Initialising plotter..."
    218     import asapplotter
    219     plotter = asapplotter.asapplotter()
     218    if os.environ.has_key('DISPLAY'):
     219        print "Initialising plotter..."
     220        import asapplotter
     221        plotter = asapplotter.asapplotter()
     222    else:
     223        print "No $DISPLAY set. Disabling plotter\n"
     224
    220225#from numarray ones,zeros
    221226
Note: See TracChangeset for help on using the changeset viewer.