2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00

perf: Remove crontab from the import tree

This commit is contained in:
Aditya Hase 2021-02-21 10:02:02 +05:30
parent ad37665e8b
commit 2a4377ac6f
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972

View File

@ -22,7 +22,6 @@ from distutils.spawn import find_executable
# imports - third party imports # imports - third party imports
import click import click
from crontab import CronTab
from semantic_version import Version from semantic_version import Version
from six import iteritems from six import iteritems
from six.moves.urllib.parse import urlparse from six.moves.urllib.parse import urlparse
@ -386,6 +385,7 @@ def get_sites(bench_path='.'):
def setup_backups(bench_path='.'): def setup_backups(bench_path='.'):
from crontab import CronTab
from bench.config.common_site_config import get_config from bench.config.common_site_config import get_config
logger.log('setting up backups') logger.log('setting up backups')