Commit 46fc983
tools/: move JSON register definition files
so as to load those files directly from the module location:
- move *_regs.json files to proxyclient/m1n1 module's folder
- load definition files using Python's resource loader
This has the benefit of avoiding path traversal and is a prerequisite
to the packaging of proxyclient as a PyPi package.
Signed-off-by: Alexis Deruelle <alexis.deruelle@gmail.com>1 parent 94b9c61 commit 46fc983
File tree
4 files changed
+24
-2
lines changed- proxyclient/m1n1
- tools
4 files changed
+24
-2
lines changedFile renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments