mirror of https://github.com/borgbackup/borg.git
fix cyclic import issues
This commit is contained in:
parent
9ef0413aeb
commit
7f5cd2c4d4
|
@ -10,7 +10,6 @@ import textwrap
|
||||||
from .errors import Error
|
from .errors import Error
|
||||||
|
|
||||||
from .process import prepare_subprocess_env
|
from .process import prepare_subprocess_env
|
||||||
from ..platform import SaveFile
|
|
||||||
from ..platformflags import is_win32
|
from ..platformflags import is_win32
|
||||||
|
|
||||||
from ..constants import * # NOQA
|
from ..constants import * # NOQA
|
||||||
|
@ -99,6 +98,7 @@ def get_cache_dir():
|
||||||
# For information about cache directory tags, see:
|
# For information about cache directory tags, see:
|
||||||
# http://www.bford.info/cachedir/spec.html
|
# http://www.bford.info/cachedir/spec.html
|
||||||
""").encode('ascii')
|
""").encode('ascii')
|
||||||
|
from ..platform import SaveFile
|
||||||
with SaveFile(cache_tag_fn, binary=True) as fd:
|
with SaveFile(cache_tag_fn, binary=True) as fd:
|
||||||
fd.write(cache_tag_contents)
|
fd.write(cache_tag_contents)
|
||||||
return cache_dir
|
return cache_dir
|
||||||
|
|
Loading…
Reference in New Issue