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
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
importsys
importos
importtraceback
importtraceback
# Require Python 3
# Require Python 3
ifsys.version_info[0]<3:
ifsys.version_info[0]<3:
...
@@ -32,6 +33,7 @@ import textwrap
...
@@ -32,6 +33,7 @@ import textwrap
fromtypingimportList
fromtypingimportList
fromtypingimportDict
fromtypingimportDict
fromtypingimportSet
fromutil.logimport*
fromutil.logimport*
fromutil.dnodesimport*
fromutil.dnodesimport*
...
@@ -42,7 +44,10 @@ import crash_gen
...
@@ -42,7 +44,10 @@ import crash_gen
importtaos
importtaos
# Global variables, tried to keep a small number.
# 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