From 79b319a48c3d4c075ce9e373b0118384d82e1e0c Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 27 Mar 2019 15:13:47 -0400 Subject: [PATCH] make archive.py runnable as package and as module --- archivebox/__init__.py | 5 +++++ archivebox/archive.py | 1 + 2 files changed, 6 insertions(+) diff --git a/archivebox/__init__.py b/archivebox/__init__.py index e69de29b..0fb9e6f8 100644 --- a/archivebox/__init__.py +++ b/archivebox/__init__.py @@ -0,0 +1,5 @@ + + +__name__ = 'archivebox' +__package__ = 'archivebox' + diff --git a/archivebox/archive.py b/archivebox/archive.py index ff4128c9..965f6a48 100755 --- a/archivebox/archive.py +++ b/archivebox/archive.py @@ -8,6 +8,7 @@ but you can also run it directly using `python3 archive.py` Usage & Documentation: https://github.com/pirate/ArchiveBox/Wiki """ +__package__ = 'archivebox' import os import sys