1
0
Fork 0

simplify bin shortcut

This commit is contained in:
Nick Sweeting 2019-04-03 00:29:58 -04:00
parent 51ae634ec9
commit 749f06fe5b
2 changed files with 2 additions and 23 deletions

View file

@ -2,16 +2,9 @@
__package__ = 'archivebox'
import os
import sys
PYTHON_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(PYTHON_DIR)
from .cli.archivebox import main
if __name__ == '__main__':
main(sys.argv)
main()

View file

@ -1,15 +0,0 @@
#!/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.cli.archivebox import main
if __name__ == '__main__':
main()

1
bin/archivebox Symbolic link
View file

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