summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-26 19:53:51 -0400
committerOwl <isaclien9752@gmail.com>2025-08-26 19:53:51 -0400
commitea2eeb7d18869bb19773782289dca325c14776d0 (patch)
treed07b71a57620f4fea6d84cbb5a6aac48bed9bf2f /__init__.py
parenta2ffb5ad9cb86a86a7fe92d258c893f982cf84c0 (diff)
downloadblenxy-ea2eeb7d18869bb19773782289dca325c14776d0.tar.gz
blenxy-ea2eeb7d18869bb19773782289dca325c14776d0.zip
unused variable
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py7
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)