o
    i;                     @  s|   d Z ddlmZ ddlZddlZddlmZ dd Ze Z	e
e	D ]Zedr)q!e eee	e q!dd	 e D ZdS )
a  Platform layer for multi-tenant SaaS capabilities around existing apps.

This package intentionally wraps the legacy applications without requiring
changes inside ``/apps``. It provides request context, tenant resolution,
routing, quotas, secrets, jobs, and structured logging primitives that can be
adopted incrementally by the main Flask entry point.

The directory name is intentionally ``platform/`` to match the requested SaaS
architecture. Because that collides with Python's standard-library
``platform`` module, this package exposes stdlib-compatible attributes at the
top level so existing imports like ``import platform; platform.system()`` keep
working while subpackages such as ``platform.gateway`` remain available.
    )annotationsN)Pathc                  C  s\   t tdd } tjd| }|d u s|jd u r td|  tj|}|j	| |S )Nstdlibzplatform.py_stdlib_platformz+Unable to load stdlib platform module from )
r   	sysconfigget_path	importlibutilspec_from_file_locationloaderRuntimeErrormodule_from_specexec_module)stdlib_pathspecmodule r   platform/__init__.py_load_stdlib_platform   s   r   _c                 C  s   g | ]	}| d s|qS )r   )
startswith).0namer   r   r   
<listcomp>(   s    r   )__doc__
__future__r   importlib.utilr   r   pathlibr   r   r   dir_namer   globals
setdefaultgetattr__all__r   r   r   r   <module>   s    

