from__future__importannotations# For type hinting before definition, ref: https://stackoverflow.com/questions/33533148/how-do-i-specify-that-the-return-type-of-a-method-is-the-same-as-the-class-itsel
importsys
# Require Python 3
ifsys.version_info[0]<3:
raiseException("Must be using Python 3")
importgetopt
importargparse
importcopy
importthreading
importrandom
importlogging
importdatetime
importtextwrap
fromtypingimportList
fromutil.logimport*
fromutil.dnodesimport*
fromutil.casesimport*
fromutil.sqlimport*
importcrash_gen
importtaos
# Global variables, tried to keep a small number.
gConfig=None# Command-line/Environment Configurations, will set a bit later