8000 fix path · robertchen/leetcode@d379557 · GitHub
[go: up one dir, main page]

Skip to content

Commit d379557

Browse files
committed
fix path
1 parent 9d56fdf commit d379557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leetcode_generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
SOLUTION_FOLDER_NAME = 'solutions'
2424
SOLUTION_FOLDER = Path.joinpath(HOME, SOLUTION_FOLDER_NAME)
2525
CONFIG_FILE = Path.joinpath(HOME, 'config.cfg')
26-
COOKIE_PATH = 'cookies.json'
26+
COOKIE_PATH = Path.joinpath(HOME, 'cookies.json')
2727
BASE_URL = 'https://leetcode.com'
2828
# If you have proxy, change PROXIES below
2929
PROXIES = None
@@ -467,7 +467,7 @@ def _download_code_by_quiz(self, quiz):
467467

468468
qname = '{id}-{title}'.format(id=str(qid).zfill(3), title=qtitle)
469469
print('begin download ' + qname)
470-
path = Path.joinpath(SOLUTION_FOLDER, ,qname)
470+
path = Path.joinpath(SOLUTION_FOLDER, qname)
471471
check_and_make_dir(path)
472472
for slt in slts:
473473
fname = '{title}.{ext}'.format(

0 commit comments

Comments
 (0)
0