Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35eb58c

Browse files
committed
9_21
1 parent 5e0e84e commit 35eb58c

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

notes.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,23 @@ So our code is ok, but it does not really match the python standards. To help us
145145
pip install flake8 pylint
146146
```
147147

148-
# Chapter 2
148+
# Chapter 2
149+
150+
To start let's cd into 02_crowsnest and run the test.
151+
152+
There are loads of errors, but the first one we see is this:
153+
154+
```bash
155+
> assert os.path.isfile(prg)
156+
E AssertionError: assert False
157+
E + where False = <function isfile at 0x102722200>('./crowsnest.py')
158+
```
159+
160+
It failed as there is no file. At least we know what to call it. So let's make a file in 02_crowsnest called "crowsnest.py". Rather than building by hand we'll use the new.py file
161+
162+
```python
163+
bin/new.py 02_crowsnest/crowsnest.py
164+
```
165+
166+
Return: Ch2 Pt 2(getting started)
167+
4:29

0 commit comments

Comments
 (0)