GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — pycppad/python/pycppad/__init__.py at devel · Simple-Robotics/pycppad Expand file tree/ Copy path__init__.pyMore file actions 30 lines (27 loc) · 1.18 KB / Copy path__init__.pyFile metadata and controls30 lines (27 loc) · 1.18 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 # # Copyright 2021 INRIA # # On Windows, if pycppad.dll is not in the same directory than # the .pyd, it will not be loaded. # We first try to load pycppad, then, if it fail and we are on Windows: # 1. We add all paths inside PYCPPAD_WINDOWS_DLL_PATH to DllDirectory # 2. If PYCPPAD_WINDOWS_DLL_PATH we add the relative path from the # package directory to the bin directory to DllDirectory # This solution is inspired from: # - https://github.com/PixarAnimationStudios/OpenUSD/pull/1511/files # - https://stackoverflow.com/questions/65334494/python-c-extension-packaging-dll-along-with-pyd # More resources on https://github.com/diffpy/pyobjcryst/issues/33 try: from .pycppad_pywrap import * from .pycppad_pywrap import __version__, __raw_version__ except ImportError: import platform if platform.system() == "Windows": from .windows_dll_manager import get_dll_paths, build_directory_manager with build_directory_manager() as dll_dir_manager: for p in get_dll_paths(): dll_dir_manager.add_dll_directory(p) from .pycppad_pywrap import * from .pycppad_pywrap import __version__, __raw_version__ else: raise |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |