Changeset 1859 for trunk/python/env.py


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

Ticket #193: the rcParamsverbose? flag is only used in standard asap cli mode. Otherwise log messages are always send to the logger and one needs to call asaplog.disable()/asaplog.enable() to controls this. I have also added the function name as the log origin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/env.py

    r1858 r1859  
    11"""This module has various functions for environment specific setings.
    22"""
    3 __all__ = ["is_casapy", "is_ipython", "setup_env", "get_revision"]
     3__all__ = ["is_casapy", "is_ipython", "setup_env", "get_revision",
     4           "is_asap_cli"]
    45
    56import sys
     
    1920    """Are we running inside IPython?"""
    2021    return 'IPython' in sys.modules.keys()
     22
     23def is_asap_cli():
     24    """Are we running inside asap ipython (but not casapy)"""
     25    return is_ipython() and not is_casapy()
    2126
    2227def setup_env():
Note: See TracChangeset for help on using the changeset viewer.