Skip to content

Commit 2304afd

Browse files
committed
Fix: align tree dir @Midnighter feedback
1 parent 9bf2be3 commit 2304afd

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

tutorials/1-installable-code.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ The directory structure you’ll create in this lesson will look like this:
8383

8484
```bash
8585
pyospackage/ # Your project directory
86-
└─ pyproject.toml
87-
└─ src/ # The source (src) directory ensures your tests always run on the installed version of your code
88-
└── pyospackage/ # Package directory where code lives
89-
├── __init__.py
90-
├── add_numbers.py
91-
└── # Add any other .py modules that you want here
86+
└─ pyproject.toml
87+
└─ src/ # The source (src) directory ensures your tests always run on the installed version of your code
88+
└── pyospackage/ # Package directory where code lives
89+
├── __init__.py
90+
├── add_numbers.py
91+
└── # Add any other .py modules that you want here
9292
```
9393

9494
### About the basic package directory structure
@@ -195,15 +195,15 @@ Your final project directory structure should look like this:
195195

196196
```bash
197197
pyospackage/ # This is your project directory
198-
└─ pyproject.toml
199-
└─ src/ # This is your package directory where your code lives
200-
└── pyospackage/
201-
├── __init__.py
198+
└─ pyproject.toml
199+
└─ src/ # This is your package directory where your code lives
200+
└── pyospackage/
201+
├── __init__.py
202202
```
203203

204204
## Step 2: Add code to your package
205205

206-
Within the `pyospackage` subdirectory, add one (1) or more Python modules (.py files) containing the code that you want your package to access and run.
206+
Within the `pyospackage` subdirectory, add one (1) or more Python modules (.py files) containing the code that you want your package to access and run.
207207
If you don't have code already and are just learning how to create a Python package, then create an empty `add_numbers.py` file.
208208

209209
:::{admonition} Python modules and the `__init__.py` file
@@ -222,12 +222,11 @@ A package can have multiple modules.
222222
Your project directory should now look like this:
223223
```
224224
pyospackage/
225-
└─ pyproject.toml
226-
└─ src/
227-
└── pyospackage/
228-
├── __init__.py
229-
├── add_numbers.py
230-
225+
└─ pyproject.toml
226+
└─ src/
227+
└── pyospackage/
228+
├── __init__.py
229+
├── add_numbers.py
231230
```
232231

233232
## Step 3. Add code to your `add_numbers.py` module

0 commit comments

Comments
 (0)