Add relative path stuff
This commit is contained in:
parent
9b808b4739
commit
43262cba6a
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue