Skip to content

Commit 2363de1

Browse files
committed
Merge remote-tracking branch 'origin/master' into I04_1-293
2 parents 6da9cd9 + 1329545 commit 2363de1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ mkdir bin
33

44
cd dls_barcode
55

6+
REM use to debug the exe file
7+
REM pyinstaller --onefile --icon=..\resources\icons\qr_code.ico --debug --clean main.py
8+
69
pyinstaller --onefile --windowed --icon=..\resources\icons\qr_code.ico --clean main.py
710

811
move dist\main.exe ..\bin\barcode.exe

dls_barcode/geometry/unipuck_locator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def _find_feature(self, features_cnt): # do this better
8989
# compares the feature from the image with the features found on the edge of the puck
9090
if getattr(sys, 'frozen', False): # for the .exe bundle
9191
#see: #see https://pythonhosted.org/PyInstaller/runtime-information.html
92-
f_path = os.path.join('..', 'resources', 'features', 'fit.png')
92+
#f_path = os.path.join('..', 'resources', 'features', 'fit.png')
93+
f_path = os.path.join('resources', 'features', 'fit.png')
9394
else:
9495
dir_path = os.path.dirname(os.path.abspath(__file__))
9596
f_path = os.path.join(dir_path, '..', '..', 'resources', 'features', 'fit.png')

0 commit comments

Comments
 (0)