We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
import-path
1 parent 69e32ee commit c986ff3Copy full SHA for c986ff3
simalq/quest_definition/__init__.hy
@@ -170,8 +170,7 @@ quest definitions from other files in this directory."
170
(setv builtin-quests (dfor
171
; Every module in this directory should have the members `name` and
172
; `quest-fn`.
173
- [finder m _] (hy.I.pkgutil.walk-packages __path__)
174
- :setv spec (.find-spec finder m)
175
- :setv m (hy.I.importlib/util.module-from-spec spec)
176
- :do (.loader.exec-module spec m)
+ p (.iterdir (hy.I.pathlib.Path (get __path__ 0)))
+ :if (not-in p.name ["__init__.hy" "__pycache__"])
+ :setv m (hy.I.hyrule.import-path p)
177
m.name m.quest-fn))
0 commit comments