From ef3e45573951f67423735cec88466e7a59ad6fcc Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Thu, 14 Sep 2017 16:10:08 +0800 Subject: [PATCH] add notes to find_library_nt function --- shadowsocks/crypto/util.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shadowsocks/crypto/util.py b/shadowsocks/crypto/util.py index 212df86..679540d 100644 --- a/shadowsocks/crypto/util.py +++ b/shadowsocks/crypto/util.py @@ -22,6 +22,13 @@ import logging def find_library_nt(name): + # type: (str) -> list + """ + find lib in windows in all the directory in path env + + :param name: can end with `.dll` or not + :return: lib results list + """ # modified from ctypes.util # ctypes.util.find_library just returns first result he found # but we want to try them all