File: usercustomize.py.in

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,764 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,825; lisp: 1,106; xml: 1,049; makefile: 579; lex: 557
file content (12 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
"""This script is used to setup the testing environment for the project."""

import sys

if sys.platform.startswith("win"):
    import os
    from pathlib import Path
    os.add_dll_directory(Path(__file__).parent)
    for build_type in "@CMAKE_CONFIGURATION_TYPES@".split(";"):
        runtime_dir = Path("@CMAKE_RUNTIME_OUTPUT_DIRECTORY@") / build_type
        if runtime_dir.is_dir():
            os.add_dll_directory(runtime_dir)