mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
pretty warning when missing distutils
This commit is contained in:
parent
c184f4f752
commit
5e583573d5
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@ import json
|
|||
|
||||
from datetime import datetime
|
||||
from string import Template
|
||||
from distutils.dir_util import copy_tree
|
||||
try:
|
||||
from distutils.dir_util import copy_tree
|
||||
except ImportError:
|
||||
print('[X] Missing "distutils" python package. To install it, run:')
|
||||
print(' pip install distutils')
|
||||
|
||||
from config import (
|
||||
OUTPUT_DIR,
|
||||
|
|
Loading…
Reference in a new issue