Skip to content

Commit 6fdb357

Browse files
committed
Fixes to rclone_encryption.py
1 parent 06b4a93 commit 6fdb357

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datashuttle/utils/rclone_encryption.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import shutil
1818
import subprocess
1919

20-
from datashuttle.configs import canonical_folders
2120
from datashuttle.utils import utils
2221

2322

@@ -126,7 +125,7 @@ def set_password_linux(cfg: Configs) -> None:
126125
utils.log_and_raise_error(
127126
f"\n--- STDOUT ---\n{output.stdout}"
128127
f"\n--- STDERR ---\n{output.stderr}"
129-
"Could not remove the password from the RClone config. See the error message above.",
128+
"Could encrypt the password from the RClone config. See the error message above.",
130129
RuntimeError,
131130
)
132131

@@ -326,7 +325,8 @@ def get_windows_password_filepath(
326325
"""Get the canonical location where datashuttle stores the windows credentials."""
327326
assert connection_method_requires_encryption(cfg["connection_method"])
328327

329-
base_path = canonical_folders.get_datashuttle_path() / "credentials"
328+
# Put this folder next to the project (datashuttle) config file
329+
base_path = cfg.file_path.parent / "credentials"
330330

331331
base_path.mkdir(exist_ok=True, parents=True)
332332

0 commit comments

Comments
 (0)