__init__.py 609 B

123456789101112131415161718
  1. # Copyright (c) Microsoft Corporation. All rights reserved.
  2. # Licensed under the MIT License. See LICENSE in the project root
  3. # for license information.
  4. from __future__ import annotations
  5. import os
  6. import typing
  7. if typing.TYPE_CHECKING:
  8. __all__: list[str]
  9. __all__ = []
  10. # The lower time bound for assuming that the process hasn't spawned successfully.
  11. PROCESS_SPAWN_TIMEOUT = float(os.getenv("DEBUGPY_PROCESS_SPAWN_TIMEOUT", 60)) or None
  12. # The lower time bound for assuming that the process hasn't exited gracefully.
  13. PROCESS_EXIT_TIMEOUT = float(os.getenv("DEBUGPY_PROCESS_EXIT_TIMEOUT", 30)) or None