Add relative path stuff

This commit is contained in:
Jean-Claude 2024-01-30 09:22:00 +01:00
parent 9b808b4739
commit 43262cba6a
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
1 changed files with 5 additions and 0 deletions

View File

@ -27,3 +27,8 @@
## Make some local module available to another module
> Useful for developing a plugin
- Create symlink to that moduel in `.venv/lib/python3.11/site-packages/`
## Paths
### Use paths that are relative to the source file
- Define `BASE = Path(__file__).parent.resolve()`
- Define all paths relative to `BASE`: `BASE / "bla.bla"`