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:
parent
ad37665e8b
commit
2a4377ac6f
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user