__init__.py 265 B

12345678910
  1. import os
  2. def init():
  3. if "Y_PYTHON_TRACE_FILE" in os.environ:
  4. import atexit
  5. import library.python.import_tracing.lib.regulator as regulator
  6. regulator.enable(os.getenv("Y_PYTHON_TRACE_FILE"))
  7. atexit.register(regulator.disable)