5

私は盲目のプログラマーで、Winamp で現在再生中の曲から歌詞を自動的に取得し、スクリーン リーダーにアクセス可能な方法で表示するアプリケーションを開発しようとしています。私はaccessible_outputを使用しています。これは、アクティブなスクリーンリーダーがユーザーと話すプロセスを容易にするライブラリです。ここで見つけることができます: https://pypi.python.org/pypi/accessible_output/0.7.5#id3 機能するには、スクリーン リーダーの DLL が必要です。私のテスト、NVDA スクリーン リーダーでは、NVDA32controller.dll が必要です。コマンドラインから実行するとうまくいきますが、py2exe で .exe ファイルを作成した後、dll が見つからないため、スクリーン リーダーはもう読み上げません... この問題を解決する方法はありますか? libのソースコードを調べたところ、libが探しているパスは、コマンドラインから実行されたときに機能するだけかもしれませんが、.exeファイルの場合は変更されます...しかしわかりませんどうして。別のパスを追加する必要があるかもしれませんが、どのパスにする必要がありますか?

4

1 に答える 1

2

The article here seems to describe a similar problem and a solution (packing the DLL in question): http://eli.thegreenplace.net/2008/10/09/packaging-dlls-with-executable-made-by-py2exe/

In addition, independent of the article above, IIRC Windows looks inside a program's installation directory for DLLs. Copying the DLL for the screen reader to the directory where the py2exe program resides might work. This solution does not deploy too well though and the one above although similar could be better.

于 2013-04-16T18:42:10.417 に答える