mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-30 09:39:52 +02:00
working archivebox command inside django legacy folder
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
# Binaries for running ArchiveBox
|
||||
|
||||
This folder contains all the executables that ArchiveBox provides.
|
||||
|
||||
|
||||
# Adding it to your `$PATH`
|
||||
To be able to run ArchiveBox from anywhere on your system, you can add this entire folder to your path, like so:
|
||||
|
||||
**Edit `~/.bash_profile`:**
|
||||
```bash
|
||||
export PATH=/opt/ArchiveBox/bin:$PATH
|
||||
```
|
||||
|
||||
# Running executables directly
|
||||
|
||||
If you don't want to add ArchiveBox to your `$PATH` you can also call these executables directly with their full path, like so:
|
||||
|
||||
`/opt/ArchiveBox/bin/ArchiveBox https://example.com/some/feed.rss`
|
@@ -1 +0,0 @@
|
||||
../archivebox/archive.py
|
15
bin/archivebox
Executable file
15
bin/archivebox
Executable 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)
|
@@ -1 +0,0 @@
|
||||
../archivebox/purge.py
|
Reference in New Issue
Block a user