Commit 6e242bf
Revert to original code and add TODO comment
The attempt to use self._project_dir caused issues where charmcraft.yaml
couldn't be found. Reverting to original code with pathlib.Path.cwd() and
adding a TODO comment explaining the limitation. The base class in
craft-application defines _app_preprocess_project as a staticmethod,
preventing access to instance variables like _project_dir.
Co-authored-by: lengau <[email protected]>1 parent e84d738 commit 6e242bf
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
0 commit comments