Commit 68fa8f9
committed
Add function to discover modules from installed Python packages
This update introduces a new function, `discoverModulesFromInstalled`, which retrieves module names from the installed `spoon_ai` package using Python's pkgutil. The function handles exceptions and ensures a fallback to a default module name if parsing fails. Additionally, the main `run` function is modified to call this new discovery method when the package root does not exist, enhancing module detection capabilities.1 parent 05b5b03 commit 68fa8f9
1 file changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
38 | 61 | | |
39 | 62 | | |
40 | 63 | | |
| |||
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
83 | | - | |
| 106 | + | |
84 | 107 | | |
85 | 108 | | |
86 | 109 | | |
| |||
141 | 164 | | |
142 | 165 | | |
143 | 166 | | |
| 167 | + | |
| 168 | + | |
144 | 169 | | |
145 | 170 | | |
146 | 171 | | |
| |||
0 commit comments