working archivebox command inside django legacy folder

This commit is contained in:
Nick Sweeting 2019-04-02 18:53:21 -04:00
parent 27708152d2
commit 68b4c01c6b
49 changed files with 222 additions and 673 deletions

View file

@ -1 +0,0 @@
../archivebox/archive.py

15
bin/archivebox Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
import os
import sys
BIN_DIR = os.path.dirname(os.path.abspath(__file__))
REPO_DIR = os.path.abspath(os.path.join(BIN_DIR, os.pardir))
sys.path.append(REPO_DIR)
from archivebox.__main__ import main
if __name__ == '__main__':
main(sys.argv)