From f18bc9b2d20295aa6c83c4fb57595bb2aa49c7d9 Mon Sep 17 00:00:00 2001 From: salman2013 Date: Thu, 25 Apr 2024 16:19:14 +0500 Subject: [PATCH] chore: code improvements --- edx_repo_tools/find_dependencies/find_python_dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edx_repo_tools/find_dependencies/find_python_dependencies.py b/edx_repo_tools/find_dependencies/find_python_dependencies.py index 8bb7a679..0d6f5c63 100644 --- a/edx_repo_tools/find_dependencies/find_python_dependencies.py +++ b/edx_repo_tools/find_dependencies/find_python_dependencies.py @@ -53,9 +53,9 @@ def main(dirs=None, org=None): """ packages_url = [] if dirs is None: - repo_dirs = json.loads(sys.argv[1]) + dirs = sys.argv[1:] - for repo_dir in repo_dirs: + for repo_dir in dirs: with open(repo_dir) as fbase: # Read each line (package name) in the file for req in requirements.parse(fbase):