You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,10 @@ The following steps will help you prepare an appropriate Python environment to r
15
15
* opencv-python==3.1.0.5
16
16
* PyQt5
17
17
18
-
* Download the source code for the Barcode scanner program from <https://github.com/DiamondLightSource/PuckBarcodeReader> - use the ‘Download ZIP’ link. Open the zip and extract the contents to a suitable folder.
19
-
20
-
* All of these packages can be installed using `pipenv`. To do this:
18
+
* Download the source code for the Barcode scanner program from <https://github.com/DiamondLightSource/PuckBarcodeReader>
19
+
* All of required packages can be installed using `pipenv`. To do this:
21
20
* To create a new virtual environment with all dependencies installed run `pipenv install --dev`
22
-
21
+
* Activate the virtual envirolment
23
22
*`cd` into the dls_barcode folder. Then type `python main.py` to run the program.
24
23
25
24
Running Tests
@@ -30,9 +29,7 @@ Creating a Self-Contained Executable
30
29
====================================
31
30
A Python package called [PyInstaller](http://www.pyinstaller.org/) can be used to create a stand-alone windows executable (.exe) file.
32
31
33
-
Activate your virtual environment (e.g.run in command line C:\Users\rqq82173\PycharmProjects\python_environments\barcode_qt5\Scripts\activate.bat)
34
-
35
-
To create the executable file, run the `build.bat` in PuckBarcodeReader folder. This will create the file `bin\barcode.exe`. This will be fairly large (~40 MB).
32
+
Activate your virtual environment (e.g.run in command line C:\Users\rqq82173\PycharmProjects\python_environments\barcode_qt5\Scripts\activate.bat) next run the `build.bat` in PuckBarcodeReader folder. This will create the file `bin\barcode.exe`. This will be fairly large (~40 MB).
36
33
Once .exe file is created add 'resources' folder to th bin folder (resources include the icon and the shape patter).
0 commit comments