From 70bea223c547dbe89f0ebc013c3125559c9103cf Mon Sep 17 00:00:00 2001 From: kxrd Date: Sat, 1 Jul 2017 09:27:00 +0200 Subject: [PATCH] Raise SystemExit if platform is win32 and using --examine-all opt --- pipreqs/pipreqs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 6cbc866..77fe64d 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -351,6 +351,9 @@ def init(args): extra_ignore_dirs = extra_ignore_dirs.split(',') if args.get("--examine-all"): + if sys.platform == "win32": + raise SystemExit("This option is only available on *nix platforms!") + examine_all = True else: examine_all = False