diff options
author | Owl <isaclien9752@gmail.com> | 2025-08-26 19:53:51 -0400 |
---|---|---|
committer | Owl <isaclien9752@gmail.com> | 2025-08-26 19:53:51 -0400 |
commit | ea2eeb7d18869bb19773782289dca325c14776d0 (patch) | |
tree | d07b71a57620f4fea6d84cbb5a6aac48bed9bf2f | |
parent | a2ffb5ad9cb86a86a7fe92d258c893f982cf84c0 (diff) | |
download | blenxy-ea2eeb7d18869bb19773782289dca325c14776d0.tar.gz blenxy-ea2eeb7d18869bb19773782289dca325c14776d0.zip |
unused variable
-rw-r--r-- | __init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
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) |