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
importos
importtraceback
# Require Python 3
ifsys.version_info[0]<3:
...
...
@@ -32,6 +33,7 @@ import textwrap
fromtypingimportList
fromtypingimportDict
fromtypingimportSet
fromutil.logimport*
fromutil.dnodesimport*
...
...
@@ -42,7 +44,10 @@ import crash_gen
importtaos
# Global variables, tried to keep a small number.
gConfig=None# Command-line/Environment Configurations, will set a bit later
# Command-line/Environment Configurations, will set a bit later
# ConfigNameSpace = argparse.Namespace
gConfig=argparse.Namespace()# Dummy value, will be replaced later