Changeset 1193


Ignore:
Timestamp:
08/29/06 09:24:47 (18 years ago)
Author:
mar637
Message:

added ipython detection to set up ipython specific things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1192 r1193  
    357357__version__  = '2.1b'
    358358
    359 if rcParams['verbose']:
     359def is_ipython():
     360    return '__IP' in dir(sys.modules["__main__"])
     361if is_ipython():
    360362    def version(): print  "ASAP %s(%s)"% (__version__, __date__)
    361363    def list_scans(t = scantable):
Note: See TracChangeset for help on using the changeset viewer.