missionfloyd 1 年間 前
コミット
06725af40b
1 ファイル変更3 行追加3 行削除
  1. 3 3
      modules/launch_utils.py

+ 3 - 3
modules/launch_utils.py

@@ -120,12 +120,12 @@ def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_
 
 
 def is_installed(package):
 def is_installed(package):
     try:
     try:
-    	dist = importlib.metadata.distribution(package)
+        dist = importlib.metadata.distribution(package)
     except importlib.metadata.PackageNotFoundError:
     except importlib.metadata.PackageNotFoundError:
-        try: 
+        try:
             spec = importlib.util.find_spec(package)
             spec = importlib.util.find_spec(package)
         except ModuleNotFoundError:
         except ModuleNotFoundError:
-    	    return False
+            return False
 
 
         return spec is not None
         return spec is not None