Moved direct invocation logic to end of file.
Added a __all__ entry at the end of the file to explicitly name the
public symbols.
1 parent a190082 commit aadac71b87f9532e15aa0699b4e005ba7e8e5841
@tundra tundra authored on 31 Mar 2004
Showing 1 changed file
View
39
tconfpy.py
 
# Program Information
 
PROGNAME = "tconfpy"
RCSID = "$Id: tconfpy.py,v 1.152 2004/03/31 22:07:05 tundra Exp $"
RCSID = "$Id: tconfpy.py,v 1.153 2004/03/31 22:40:02 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
#----------------------------------------------------------#
 
 
#------------------- Nothing Below Here Should Need Changing -----------------#
 
 
#----------------------------------------------------------#
# Imports #
#----------------------------------------------------------#
# End of 'mkmsg()'
 
 
#----------------------------------------------------------#
# Entry Point On Direct Invocation #
#----------------------------------------------------------#
 
if __name__ == '__main__':
 
print BANNER
 
 
 
#----------------------------------------------------------#
# Public API To Module #
#----------------------------------------------------------#
 
def ParseConfig(cfgfile, InitialSymTbl={}, Debug=False, LiteralVars=False):
 
# End of 'ParseLine'
 
 
#----------------------------------------------------------#
# List Of Public Names Available To Program Importing Us #
#----------------------------------------------------------#
 
 
__all__ = ["ParseConfig",
"TYPE_BOOL",
"TYPE_COMPLEX",
"TYPE_FLOAT",
"TYPE_INT",
"TYPE_STRING",
"VarDescriptor"
]
 
 
#----------------------------------------------------------#
# Entry Point On Direct Invocation #
#----------------------------------------------------------#
 
if __name__ == '__main__':
 
print BANNER