Changeset 1858 for trunk/python/env.py


Ignore:
Timestamp:
08/05/10 11:46:40 (14 years ago)
Author:
Malte Marquarding
Message:

Adde more API documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/env.py

    r1848 r1858  
     1"""This module has various functions for environment specific setings.
     2"""
    13__all__ = ["is_casapy", "is_ipython", "setup_env", "get_revision"]
    24
     
    79
    810def is_casapy():
     11    """Are we running inside casapy?"""
    912    try:
    1013        from taskinit import casalog
     
    1417
    1518def is_ipython():
     19    """Are we running inside IPython?"""
    1620    return 'IPython' in sys.modules.keys()
    1721
    1822def setup_env():
     23    """Set-up environment variables for casa and initialise ~/.asap on first
     24    use.
     25    """
    1926    # Set up CASAPATH and first time use of asap i.e. ~/.asap/*
    2027    plf = None
     
    5966
    6067def get_revision():
     68    """Get the revision of the software. Only useful within casapy."""
    6169    if not is_casapy:
    6270        return ' unknown '
Note: See TracChangeset for help on using the changeset viewer.