Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChampu committed Aug 30, 2024
1 parent 682362c commit 08d1e39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ChampuXMusic/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import logging
from os.path import dirname, isfile, join, abspath
import subprocess
from ChampuXMusic import HELPABLE
from config import EXTRA_PLUGINS, EXTRA_PLUGINS_REPO, EXTRA_PLUGINS_FOLDER

ROOT_DIR = abspath(join(dirname(__file__), "..", ".."))
Expand Down Expand Up @@ -53,12 +52,12 @@ def __list_all_modules():
(
(
(f.replace(main_repo_plugins_dir, "ChampuXMusic.plugins")).replace(
EXTERNAL_REPO_PATH, EXTRA_PLUGINS_FOLDER
EXTERNAL_REPO_PATH, EXTRA_PLUGINS_FOLDER
)
).replace(os.sep, ".")
)[:-3]
for f in mod_paths
if isfile(f) and f.endswith(".py") and not f.endswith("__init__.py") and f in HELPABLE
if isfile(f) and f.endswith(".py") and not f.endswith("__init__.py")
]
all_modules.extend(modules)

Expand Down

0 comments on commit 08d1e39

Please sign in to comment.