mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
fix(pipreqs): add venv to ignore_dirs
This commit is contained in:
parent
ea191acd36
commit
1e7b021120
@ -42,7 +42,7 @@ else:
|
|||||||
def get_all_imports(path, encoding=None):
|
def get_all_imports(path, encoding=None):
|
||||||
imports = []
|
imports = []
|
||||||
candidates = []
|
candidates = []
|
||||||
ignore_dirs = [".hg", ".svn", ".git", "__pycache__", "env"]
|
ignore_dirs = [".hg", ".svn", ".git", "__pycache__", "env", "venv"]
|
||||||
|
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
dirs[:] = [d for d in dirs if d not in ignore_dirs]
|
dirs[:] = [d for d in dirs if d not in ignore_dirs]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user