2021-04-23 23:12:14 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# DEPRECATED: this helper exists for backwards compatibility with <v0.4 only
|
|
|
|
# Do not use this to call archivebox, instead use the archivebox binary directly.
|
2020-08-10 13:21:56 -04:00
|
|
|
|
2020-08-13 22:23:27 -04:00
|
|
|
if python3 -m django --version >/dev/null 2>&1; then
|
|
|
|
python3 -m archivebox "$*"
|
|
|
|
else
|
2021-04-23 23:12:14 -04:00
|
|
|
echo '[X] ArchiveBox not found, is it installed and present in your $PATH?'
|
|
|
|
echo ' pip3 install archivebox'
|
2020-08-13 22:23:27 -04:00
|
|
|
echo
|
2021-04-23 23:12:14 -04:00
|
|
|
echo 'Hint: Did you forget to activate a virtualenv?'
|
2020-08-13 22:23:27 -04:00
|
|
|
exit 2
|
|
|
|
fi
|