Skip to content

Commit

Permalink
chore: code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 committed Apr 25, 2024
1 parent c7dd50b commit bf002f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions edx_repo_tools/find_dependencies/find_python_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def request_package_info_url(package):
if response.status_code == 200:
data_dict = response.json()
info = data_dict["info"]
home_page = info["home_page"]
return home_page
return info["home_page"]
else:
print(f"Failed to retrieve data for package {package}. Status code:", response.status_code)

Expand All @@ -67,13 +66,13 @@ def urls_in_orgs(urls, orgs):

def main(dirs=None, org=None):
"""
Analyze the requirements in all of the directories mentioned on the command line.
If arguments have newlines, treat each line as a separate directory.
Analyze the requirements in input directory mentioned on the command line.
"""
packages_url = []
if dirs is None:
repo_dir = sys.argv[1]

print("path --> ")
print(f'{repo_dir}/base.txt')
with open(f'{repo_dir}/base.txt') as fbase:
# Read each line (package name) in the file
for req in requirements.parse(fbase):
Expand Down

0 comments on commit bf002f6

Please sign in to comment.