Skip to content

Commit ca674d8

Browse files
committed
checkpoint: setting cookie directory for icloudpy
1 parent ea1896e commit ca674d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/timetracking/data_source.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from typing import Type, Union, Any, Optional
22

3+
from pathlib import Path
4+
35
from loguru import logger
46
import icloudpy
57

@@ -122,6 +124,7 @@ def login_to_icloud(
122124
icloud_connector = icloudpy.ICloudPyService(
123125
apple_id=apple_id,
124126
password=password,
127+
cookie_directory=Path.home() / ".tuttle" / "cookies",
125128
)
126129
return CloudConnector(
127130
cloud_connector=icloud_connector,

0 commit comments

Comments
 (0)