From ea2eeb7d18869bb19773782289dca325c14776d0 Mon Sep 17 00:00:00 2001 From: Owl Date: Tue, 26 Aug 2025 19:53:51 -0400 Subject: unused variable --- __init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '__init__.py') diff --git a/__init__.py b/__init__.py index e2971fd..5b0949c 100644 --- a/__init__.py +++ b/__init__.py @@ -32,10 +32,9 @@ def new_mod_install(mod_names): "--trusted-host", "pypi.org", "-U", "--force-reinstall", "--only-binary", ":all:"] - # check if pip is available - pip = None - try: # import the pip module - pip = importlib.import_module("pip") + # check if the pip module is available + try: + importlib.import_module("pip") except: # install pip subprocess.run([py_bin, "-B", "-m", "ensurepip"]) subprocess.run(pip_install + pip_modules) -- cgit v1.2.3-70-g09d2