wikiをはじめました. pythonはじめました.
cygwinのctypes.util.find_libraryがうまくいかなかったので適当に付け加える
/lib/python2.5/ctypes/util.pyに追加
(初めてのpythonコード)
よくわからないけど,無理やりcyg~dllを探し出す.
どうなんだろう…
if os.name == "posix" and sys.platform == "cygwin":
import re
def _get_cmd_res(cmd):
f = os.popen(cmd)
trace = f.read()
f.close()
return trace
def find_library(name):
expr = 'cyg.*\.dll'
try:
trace = _get_cmd_res('which lib' + name + '.dll.a 2>&1')
if trace.startswith("which"):
return None
trace = _get_cmd_res('objdump -s ' + trace.strip("\n") + ' | grep \"\.dll\" 2>&1')
res = re.search(expr, trace)
if not res:
return None
trace = _get_cmd_res('which ' + res.group(0) + ' 2>&1')
if trace.startswith("which"):
return None
return trace.strip("\n")
except OSError, e:
if e.errno != errno.ENOENT:
raise
<?xml version="1.0"?> <SecuritySettings xmlns="http://schemas.microsoft.com/robotics/2006/10/security.html"> <AuthenticationRequired>false</AuthenticationRequired> <OnlySignedAssemblies>false</OnlySignedAssemblies> <Users /> </SecuritySettings>imageプラグインエラー : 画像を取得できませんでした。しばらく時間を置いてから再度お試しください。