Skip to content

Commit 2dce835

Browse files
author
frostming
committed
let's see what's happening
1 parent e6b2f64 commit 2dce835

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pipenv/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,15 @@ def import_from_code(path="."):
243243
rs = []
244244
try:
245245
for r in pipreqs.get_all_imports(path, encoding="utf-8"):
246+
click.echo(r)
246247
if r not in BAD_PACKAGES:
247248
rs.append(r)
248249
pkg_names = pipreqs.get_pkg_names(rs)
249250
return [proper_case(r) for r in pkg_names]
250251

251252
except Exception:
253+
import traceback
254+
traceback.print_exc()
252255
return []
253256

254257

pipenv/vendor/pipreqs/pipreqs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_all_imports(path, encoding=None, extra_ignore_dirs=None):
6868

6969
candidates.append(os.path.basename(root))
7070
files = [fn for fn in files if os.path.splitext(fn)[1] == ".py"]
71-
71+
print(root, files)
7272
candidates += [os.path.splitext(fn)[0] for fn in files]
7373
for file_name in files:
7474
with open_func(os.path.join(root, file_name), "r", encoding=encoding) as f:

0 commit comments

Comments
 (0)