Skip to content

Commit 7eb14a5

Browse files
committed
Adjust path to assets
1 parent c9f3d94 commit 7eb14a5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Diff for: 12.Imports.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ variable = 123
5656

5757
#### Example
5858

59-
Let's create a mini application stored in `Base/assets/lesson_12/` directory.
59+
Let's create a mini application stored in `assets/lesson_12/` directory.
6060

6161
We will split our logic having different `.py` files:
6262

@@ -221,7 +221,7 @@ If `mymodule.py` is run as the main file, the `main()` function will execute and
221221

222222
If `mymodule.py` is imported into another file, `say_hello` can be used, but `Alice` will not be greeted until `say_hello` is explicitly called.
223223

224-
Try it yourself and experiment with the code provided in `Base/assets/lesson_12`, and you will see the diference.
224+
Try it yourself and experiment with the code provided in `assets/lesson_12`, and you will see the diference.
225225

226226
## 5. Packages
227227

@@ -491,7 +491,7 @@ if __name__ == "__main__":
491491
main()
492492
```
493493

494-
You can find the whole project in `Base/assets/weather_fetcher` directory.
494+
You can find the whole project in `assets/weather_fetcher` directory.
495495

496496
## 8. `Pillow`
497497

@@ -559,7 +559,7 @@ if __name__ == "__main__":
559559
main()
560560
```
561561

562-
You can find the whole project in `Base/assets/image_processor` directory.
562+
You can find the whole project in `assets/image_processor` directory.
563563

564564
Add functionality for saving image and applying filters and effects to it.
565565

Diff for: 13.Files.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ To read contents of a file you can use `read()` method, it returns text of the f
7474
#### Example
7575

7676
```python
77-
file = open("Base/assets/lesson_12/menu.py", "r")
77+
file = open("assets/lesson_12/menu.py", "r")
7878
file_text = file.read()
7979
print(file_text)
8080
file.close()
@@ -98,7 +98,7 @@ In python there is method `readlines()`, it can be used to read contents of a fi
9898
#### Example
9999

100100
```python
101-
file = open("Base/assets/lesson_12/menu.py", "r")
101+
file = open("assets/lesson_12/menu.py", "r")
102102
lines = file.readlines()
103103
for line in lines:
104104
print(line)

Diff for: 20.Iterators-and-generators.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ import time
184184

185185
start_time = time.time()
186186

187-
with open('Intermediate/Assets/m.txt', 'r') as f:
187+
with open('assets/m.txt', 'r') as f:
188188
lines = f.readlines()
189189
line_count = len(lines)
190190

@@ -197,7 +197,7 @@ print(f"Processing time without iterator: {non_iterator_time} seconds")
197197
start_time = time.time()
198198

199199
line_count = 0
200-
with open('Intermediate/Assets/m.txt', 'r') as f:
200+
with open('assets/m.txt', 'r') as f:
201201
for line in f: # This uses an iterator internally
202202
line_count += 1
203203

@@ -356,7 +356,7 @@ def format_errors(error_lines):
356356
yield f"Error found: {line}"
357357

358358
# Chaining generators
359-
log_path = "Base/assets/application.log"
359+
log_path = "assets/application.log"
360360
formatted_errors = format_errors(filter_errors(read_logs(log_path)))
361361

362362
for error in formatted_errors:

0 commit comments

Comments
 (0)