Skip to content

Commit

Permalink
fix: look here for module as well
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Nov 21, 2024
1 parent 0f51d9f commit 179e931
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExtractModule.lean
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def main : (args : List String) → IO UInt32
let modName := mod.toName

let sp ← Compat.initSrcSearchPath
let sp : SearchPath := (sp : List System.FilePath) ++ [("." : System.FilePath)]
let fname ← do
if let some fname ← sp.findModuleWithExt "lean" modName then
pure fname
Expand Down

0 comments on commit 179e931

Please sign in to comment.