(When reading this document, replace MY_PROGRAM with the name of your program)
- Open terminal in vscode and switch to bash
- In bash type
pip install pyinstaller
- In bash type
pyinstaller --specpath build/ --add-data '..\src\tracker\lib\GUI_Base.ui;.\src\tracker\lib' --add-data '..\LICENSE;.' --add-data '../data;.\data' -D src/GUI_main_program.py
- Copy the dist into a folder on a flash drive or c:drive with a main folder named
3D
- Make sure the data folder has the following folders, if not add: color_i, color_o, infrared_i, infrared_o, other_i, other_o
- Check the dist folder for a file called
MY_PROGRAM.exe
- Double click the *.exe to reun the prgram
- You DO NOT need to download python. It is included in the dist folder.
- The program will take a minute to start the first time.
In your current directory a folder named data
MUST exist.
You need the following folders in the data folder: color_i, color_o, infrared_i, infrared_o, other_i, other_o
Double clicking works, but if you need to see an error:
- open a terminal in the project root (the directory this file is in)
- if you're using command prompt (If your prompt looks like
C:\Users\Bob>
) run.\dist\MY_PROGRAM.exe
- if you're using bash (if our prompt looks like
$
) run./dist/MY_PROGRAM.exe
- if you're using command prompt (If your prompt looks like