microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
source/pip/qsharp/code/__init__.py
12lines · modecode
| 1 | # Copyright (c) Microsoft Corporation. |
| 2 | # Licensed under the MIT License. |
| 3 | |
| 4 | """Deprecated. Use :mod:`qdk.code` instead.""" |
| 5 | |
| 6 | import sys |
| 7 | import qdk.code as _real_code |
| 8 | |
| 9 | # This module replaces itself in :mod:`sys.modules` with the real :mod:`qdk.code` |
| 10 | # module so that dynamically generated Q# callables stay in sync between the two |
| 11 | # import paths. |
| 12 | sys.modules[__name__] = _real_code |
| 13 | |