simplify bin shortcut
This commit is contained in:
parent
51ae634ec9
commit
749f06fe5b
2 changed files with 2 additions and 23 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
1
bin/archivebox
Symbolic link
|
@ -0,0 +1 @@
|
|||
../archivebox/__main__.py
|
Loading…
Reference in a new issue