pyinstaller with data

pyinstaller --noconsole --add-data="data_files/shape_predictor_68_face_landmarks.dat;data_files" --add-data="data_files/brad_pitt.jpg;data_files" --add-data="data_files/candide.npz;data_files" --onefile zad2.py
pyinstaller getrealpath.py --add-data "ffmpeg\ffmpeg.exe;." --add-binary "ffmpeg\avcodec-58.dll;." --add-binary "ffmpeg\avdevice-58.dll;." --add-binary "ffmpeg\avfilter-7.dll;." --add-binary "ffmpeg\avformat-55.dll;." --add-binary "ffmpeg\avformat-58.dll;." --add-binary "ffmpeg\avutil-56.dll;." --add-binary "ffmpeg\postproc-55.dll;." --add-binary "ffmpeg\swresample-3.dll;." --add-binary "ffmpeg\swscale-5.dll;." --onefile --clean

refer to:https://stackoverflow.com/questions/51060894/adding-a-data-file-in-pyinstaller-using-the-onefile-option

除额外注明的地方外,本维基上的内容按下列许可协议发布: CC Attribution-Share Alike 4.0 International