Skip to content

Commit

Permalink
Fix 180: Make subprocess commands proper lists
Browse files Browse the repository at this point in the history
  • Loading branch information
calizarr committed Aug 2, 2024
1 parent a2c46c5 commit b1f7f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_inspector/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def to_dict(self, generic_paths=False):
}

def pip_conf_get_index_urls() -> list:
pip_index_url_cmd = "pip config get global.index-url"
pip_extra_index_url_cmd = "pip config get global.extra-index-url"
pip_index_url_cmd = ["pip", "config", "get", "global.index-url"]
pip_extra_index_url_cmd = ["pip", "config", "get", "global.extra-index-url"]
index_urls = subprocess.run(pip_index_url_cmd, capture_output=True)
if index_urls.returncode != 0:
index_urls = []
Expand Down

0 comments on commit b1f7f47

Please sign in to comment.