8000 dep_check.py: move from pip to setuptools by GIJack · Pull Request #269 · DataSploit/datasploit · GitHub
[go: up one dir, main page]

Skip to content

dep_check.py: move from pip to setuptools #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add exception checking for reading from requirements.txt
  • Loading branch information
GI_Jack committed Sep 17, 2018
commit 280d05ed64bf6ca221f049eb96f978905005d5a9
8 changes: 6 additions & 2 deletions dep_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ def check_dependency():
list_deps = []
missing_deps = []

with open('requirements.txt') as f:
list_deps = f.read().splitlines()
try:
with open('requirements.txt') as f:
list_deps = f.read().splitlines()
except:
print "Cannot read requirements.txt to check for missing modules, exiting..."
sys.exit()

# get list of installed python packages
pip_list = []
Expand Down
0