mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
move main into cli init and remove circular import layer
This commit is contained in:
parent
3ec97e5528
commit
322be6b292
5 changed files with 61 additions and 83 deletions
|
@ -3,13 +3,8 @@
|
|||
__package__ = 'archivebox'
|
||||
|
||||
import sys
|
||||
from .cli import archivebox
|
||||
|
||||
|
||||
def main():
|
||||
archivebox.main(args=sys.argv[1:], stdin=sys.stdin)
|
||||
|
||||
from .cli import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
archivebox.main(args=sys.argv[1:], stdin=sys.stdin)
|
||||
|
||||
main(args=sys.argv[1:], stdin=sys.stdin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue