Skip to content

Commit

Permalink
Update main.py to fix the CipherOS directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 6, 2024
1 parent 22e4b74 commit 057192c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def plugins(argsraw):
console.print("Reloading all plugins...")
for plugin_name in list(api.plugins):
api.disable_plugin(api.plugins[plugin_name])
for plugin_file in os.listdir(os.path.join(api.starterdir, "plugins")):
for plugin_file in os.listdir(os.path.join(api.starterdir,"CipherOS", "plugins")):
api.load_plugin(os.path.join(api.starterdir, "plugins", plugin_file))
console.print("Reload complete.")

Expand Down Expand Up @@ -817,8 +817,8 @@ def vdump(argsraw):
else:
console.print("Starting CipherOS")

if not len(os.listdir(os.path.join(api.starterdir, "plugins"))) == 0:
for i in os.listdir(os.path.join(api.starterdir, "plugins")):
if not len(os.listdir(os.path.join(api.starterdir,"CipherOS","plugins"))) == 0:
for i in os.listdir(os.path.join(api.starterdir,"CipherOS","plugins")):
try:
api.load_plugin(os.path.join(api.starterdir, "plugins", i))
except:
Expand Down

0 comments on commit 057192c

Please sign in to comment.