Cat
Namespaces | Functions | Variables
cat.py File Reference

Go to the source code of this file.

Namespaces

 cat
 

Functions

def cat.reset_file (size, max_size, reason)
 
def cat.safe_getsize (hist_file)
 
def cat.main (argv=None)
 

Variables

 cat.hist_file = os.path.expandvars("$CATPATH/.cathistory")
 
int cat.max_size_bytes = 10000
 
int cat.max_size_lines = 100
 
int cat.lines = 0
 
def cat.size = safe_getsize(hist_file)
 
 cat.f = open(hist_file,'a')