Skip to content

Commit

Permalink
fix iter
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaselhans committed Nov 26, 2023
1 parent c779085 commit cc49d11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

for dir in sys.path:
print(dir)
for subdir in os.listdir(dir):
print(f" {subdir}")
basepath = pathlib.Path(dir)
if basepath.is_dir():
for subdir in basepath.iterdir():
print(f" {subdir}")

import mypy.stubgen

Expand Down

0 comments on commit cc49d11

Please sign in to comment.