Changeset 1589 for trunk/python/__init__.py
- Timestamp:
- 07/02/09 12:17:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1588 r1589 4 4 """ 5 5 import os,sys,shutil, platform 6 import functools 6 7 7 8 # Set up AIPSPATH and first time use of asap i.e. ~/.asap/* … … 351 352 asaplog.disable() 352 353 354 355 def print_log_dec(f): 356 @functools.wraps(f) 357 def wrap_it(*args, **kw): 358 val = f(*args, **kw) 359 print_log() 360 return val 361 return wrap_it 362 353 363 def print_log(): 354 log = asaplog.pop() 364 log = asaplog.pop().strip() 355 365 if len(log) and rcParams['verbose']: print log 356 366 return … … 395 405 def is_ipython(): 396 406 return '__IP' in dir(sys.modules["__main__"]) 397 407 398 408 if is_ipython(): 399 409 def version(): print "ASAP %s(%s)"% (__version__, __date__)
Note: See TracChangeset
for help on using the changeset viewer.