Open nba2023 opened 8 months ago
Usually, you can embed "resources" (files that are not Python) in your bundles. I never used PyInstaller directly (only indirectly).
Would --add-data
work for you ?
Additional non-binary files or folders to be added to the executable. [...]
Python version: Python 3.6.9 Robot Framework version: 4.1.3 PyInstaller Version: 4.10 OS: Linux 5.4.0-77-generic x86~18.04.1-Ubuntu
My purpose is to package the source code from here (https://github.com/openbmc/openbmc-test-automation). And I create an entry point by .py (loop_test.py) to execute target test case in .robot. Then run following packaging command:
pyinstaller -D -n openbmc_robot tools/multiple-rounds/loop_test.py --distpath dist/openbmc_robot --add-data "./docs/**:docs" --add-data "./test_files/**:test_files" --add-data "./test_lists/**:test_lists"
The executable command as follows:./openbmc_robot -c "-i 2.1.1" -n test
And get these errors:Is there any way to package the robot file to run or only package .py file for now?