def get_python_library_path():
 dlls = getImports(sys.executable)
 for filename in dlls:
  for name in PYDYLIB_NAMES:
   if (os.path.basename(filename) == name):
    if (is_win and (not os.path.isabs(filename))):
     filename = getfullnameof(filename)
    return filename
 if is_unix:
  for name in PYDYLIB_NAMES:
   python_libname = findLibrary(name)
   if python_libname:
    return python_libname
 elif is_darwin:
  prefixes = [compat.base_prefix, os.path.join(compat.base_prefix, 'lib')]
  for prefix in prefixes:
   for name in PYDYLIB_NAMES:
    full_path = os.path.join(prefix, name)
    if os.path.exists(full_path):
     return full_path
 return None

def get_python_library_path ( ) : dlls = getImports ( sys . executable ) for filename in dlls : for name in PYDYLIB_NAMES : if ( os . path . basename ( filename ) == name ) : if ( is_win and ( not os . path . isabs ( filename ) ) ) : filename = getfullnameof ( filename ) return filename if is_unix : for name in PYDYLIB_NAMES : python_libname = findLibrary ( name ) if python_libname : return python_libname elif is_darwin : prefixes = [ compat . base_prefix , os . path . join ( compat . base_prefix , 'lib' ) ] for prefix in prefixes : for name in PYDYLIB_NAMES : full_path = os . path . join ( prefix , name ) if os . path . exists ( full_path ) : return full_path return None
find dynamic python library that will be bundled with frozen executable .