예제 #1
0
파일: os.py 프로젝트: zq1997/cpython
    def add_dll_directory(path):
        """Add a path to the DLL search path.

        This search path is used when resolving dependencies for imported
        extension modules (the module itself is resolved through sys.path),
        and also by ctypes.

        Remove the directory by calling close() on the returned object or
        using it in a with statement.
        """
        import nt
        cookie = nt._add_dll_directory(path)
        return _AddedDllDirectory(path, cookie, nt._remove_dll_directory)
예제 #2
0
파일: os.py 프로젝트: mathio3/5arbachat
    def add_dll_directory(path):

        import nt
        cookie = nt._add_dll_directory(path)
        return _AddedDllDirectory(path, cookie, nt._remove_dll_directory)