Skip to content

Commit adb70a4

Browse files
committed
@update modules usage
1 parent eff1af3 commit adb70a4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,18 @@
66
- By default the flask app runs on 5000 port - `http://localhost:5000/hello`
77
- `pipenv install PyPDF2` - installs the PyPDF2 package and updates `Pipfile` and `Pipfile.lock` files.
88
- Once the shell is activated, run `python3 pdf_reader.py` to read the `example.pdf` file
9+
- `basics.py` - file which includes all basic syntaxes in python
10+
- `modules.py`
11+
- python searches the list of directories from `sys.path`. Use `sys.path.append(directory_path)` to add directory searches during import.
12+
```python
13+
python3
14+
Python 3.7.5 (default, Nov 1 2019, 02:16:32)
15+
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
16+
Type "help", "copyright", "credits" or "license" for more information.
17+
>>> import sys
18+
>>> sys.path
19+
['', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages']
20+
```
21+
- Alternatively use `PYTHONPATH` to set the package/module import paths.
22+
- If a package has `__init__.py`, it becomes a module
23+
- `learn` is a module which is used in `modules.py`

0 commit comments

Comments
 (0)