Skip to content

Commit 2f10933

Browse files
Update code.md
1 parent 895e317 commit 2f10933

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/code.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ The following steps will help you prepare an appropriate Python environment to r
1515
* opencv-python==3.1.0.5
1616
* PyQt5
1717

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:
2120
* To create a new virtual environment with all dependencies installed run `pipenv install --dev`
22-
21+
* Activate the virtual envirolment
2322
* `cd` into the dls_barcode folder. Then type `python main.py` to run the program.
2423

2524
Running Tests
@@ -30,9 +29,7 @@ Creating a Self-Contained Executable
3029
====================================
3130
A Python package called [PyInstaller](http://www.pyinstaller.org/) can be used to create a stand-alone windows executable (.exe) file.
3231

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).
3633
Once .exe file is created add 'resources' folder to th bin folder (resources include the icon and the shape patter).
3734
Zip the bin folder and add it to release files.
3835

0 commit comments

Comments
 (0)