Changeset 1859 for trunk/python/env.py
- Timestamp:
- 08/05/10 14:40:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/env.py
r1858 r1859 1 1 """This module has various functions for environment specific setings. 2 2 """ 3 __all__ = ["is_casapy", "is_ipython", "setup_env", "get_revision"] 3 __all__ = ["is_casapy", "is_ipython", "setup_env", "get_revision", 4 "is_asap_cli"] 4 5 5 6 import sys … … 19 20 """Are we running inside IPython?""" 20 21 return 'IPython' in sys.modules.keys() 22 23 def is_asap_cli(): 24 """Are we running inside asap ipython (but not casapy)""" 25 return is_ipython() and not is_casapy() 21 26 22 27 def setup_env():
Note: See TracChangeset
for help on using the changeset viewer.