Python スクリプトをスタンドアロン アプリケーションに構築しようとしています。GUI2Exe を使用しています。私のスクリプトはセレンパッケージを使用しています。私はそれをインストールしました。プロジェクトは正常にコンパイルされ、Python コマンド ラインで直接実行されますが、フォルダーを参照しているため、スタンドアロンのビルドに失敗します。
ERROR: test_file_data_extract (__main__.FileDataExtract)
----------------------------------------------------------------------
Traceback (most recent call last):
File "File_data_extract.py", line 18, in setUp
File "selenium\webdriver\firefox\firefox_profile.pyc", line 63, in __init__
IOError: [Errno 2] No such file or directory: 'C:\\users\\username\\PycharmProjects\\Python_27_32bit\\file_data_extract\\dist\\File_data_extract.exe\\selenium\\webdriver\\firefox\\webdriver_prefs.json'
C:\Users\username\Anaconda2_Py27_32bit\Lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\firefox にある Selenium パッケージを探しています。
C:\Users\username\Anaconda2_Py27_32bit は、Anaconda Python 2.7、32 ビット バージョンをインストールした場所です。デフォルトでは、\dist\filename.exe フォルダーを探します。