From 24a9f432c9a4b1b395503cf8ac4932a28c43e0c6 Mon Sep 17 00:00:00 2001
From: Nick Sweeting <github@sweeting.me>
Date: Thu, 26 Sep 2024 02:37:44 -0700
Subject: [PATCH] fix archivebox manage command not passing args correctly

---
 archivebox/main.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/archivebox/main.py b/archivebox/main.py
index 7adeb3a9..243fedd3 100755
--- a/archivebox/main.py
+++ b/archivebox/main.py
@@ -1313,10 +1313,10 @@ def manage(args: Optional[List[str]]=None, out_dir: Path=OUTPUT_DIR) -> None:
         stderr('[!] Warning: you need to pass -it to use interactive commands in docker', color='lightyellow')
         stderr('    docker run -it archivebox manage {}'.format(' '.join(args or ['...'])), color='lightyellow')
         stderr('')
+        
+    # import ipdb; ipdb.set_trace()
 
-    from plugins_pkg.pip.apps import ARCHIVEBOX_BINARY  
-
-    execute_from_command_line([ARCHIVEBOX_BINARY.load().abspath, 'manage', *(args or ['help'])])
+    execute_from_command_line(['manage.py', *(args or ['help'])])
 
 
 @enforce_types