evan.liu 1948e4b1ba tools: commit the bundled production runtime (python-embed + NSpyocd + DFP pack)
Per request the full portable environment is now in git: a fresh clone's
tools/ runs everything with zero installation. Only regenerable release
zips and the dev venv stay ignored.
2026-09-05 10:38:43 +08:00

22 lines
395 B
Python

from enum import IntEnum
from winrt._winrt import init_apartment, uninit_apartment, STA, MTA
__all__ = ["ApartmentType", "init_apartment", "uninit_apartment"]
class ApartmentType(IntEnum):
"""
Enumeration of COM apartment types.
"""
SINGLE_THREADED = STA
"""
Single-threaded apartment.
"""
MULTI_THREADED = MTA
"""
Multi-threaded apartment.
"""