CIRCT 22.0.0git
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
2# See https://llvm.org/LICENSE.txt for license information.
3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4import sys
5import os
6from .accelerator import AcceleratorConnection
7
8from .esiCppAccel import (AppID, Type, BundleType, ChannelType, ArrayType,
9 StructType, BitsType, UIntType, SIntType)
10
11__all__ = [
12 "AcceleratorConnection", "AppID", "Type", "BundleType", "ChannelType",
13 "ArrayType", "StructType", "BitsType", "UIntType", "SIntType"
14]
15
16if sys.platform == "win32":
17 """Ensure that ESI libraries are in the dll path on Windows. Necessary to
18 call when users build against the esiaccel-provided prebuilt CMake/prebuilt
19 libraries, before they are loaded via. python.
20 """
21 from .utils import get_dll_dir
22 os.add_dll_directory(str(get_dll_dir()))