Quote:In this code ""G:\\div_code\\open_hardware\\*;."" what this mean ? It is path to some file ? I dont get it from where you have open_hardware file.File structure.
G:\div_code\ |-- open_hardware\ |-- open_temp.py |-- OpenHardwareMonitor.exe |-- OpenHardwareMonitor.config |-- rest of files from OpenHardwareMonitorSo all is done from command line,here some navigate i use cmder use
dir
instead ls
in cmd
.G:\div_code λ cd open_hardware\ # list files in open_harware folder G:\div_code\open_hardware λ ls Aga.Controls.dll* OpenHardwareMonitor.exe* OxyPlot.dll* dist/ temp_show.py License.html OpenHardwareMonitorLib.dll* __pycache__/ open_temp.py OpenHardwareMonitor.config OxyPlot.WindowsForms.dll* build/ open_temp.spec # Test that pyinstaller is installed G:\div_code\open_hardware λ pyinstaller --version 3.6 # Test python G:\div_code\open_hardware λ python -V Python 3.8.3 # Cd to dist G:\div_code\open_hardware λ cd dist G:\div_code\open_hardware\dist λ ls open_temp/ G:\div_code\open_hardware\dist λ cd open_temp\ # Test that open_temp.exe work G:\div_code\open_hardware\dist\open_temp λ open_temp.exe CPU Core #3 39.0 CPU Core #4 37.0 CPU Core #5 43.0 CPU Core #6 43.0 Temperature 29.0 GPU Core 32.0 Temperature 29.0 Auxiliary 37.5 System 34.0 CPU Core #1 49.0 CPU Core #2 40.0 Press Enter to exit SUCCESS: Sent termination signal to the process "OpenHardwareMonitor.exe" with PID 39700. G:\div_code\open_hardware\dist\open_temp λSo in code over this command under here is already run.
This command means take all files
\\*
in folder open_hardware folder and place it in root folder .
of pyinstaller dist\open_temp
folder. G:\div_code\open_temp folder. λ pyinstaller --onedir --add-data "G:\\div_code\\open_hardware\\*;." open_temp.py