We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d56fdf commit d379557Copy full SHA for d379557
leetcode_generate.py
@@ -23,7 +23,7 @@
23
SOLUTION_FOLDER_NAME = 'solutions'
24
SOLUTION_FOLDER = Path.joinpath(HOME, SOLUTION_FOLDER_NAME)
25
CONFIG_FILE = Path.joinpath(HOME, 'config.cfg')
26
-COOKIE_PATH = 'cookies.json'
+COOKIE_PATH = Path.joinpath(HOME, 'cookies.json')
27
BASE_URL = 'https://leetcode.com'
28
# If you have proxy, change PROXIES below
29
PROXIES = None
@@ -467,7 +467,7 @@ def _download_code_by_quiz(self, quiz):
467
468
qname = '{id}-{title}'.format(id=str(qid).zfill(3), title=qtitle)
469
print('begin download ' + qname)
470
- path = Path.joinpath(SOLUTION_FOLDER, ,qname)
+ path = Path.joinpath(SOLUTION_FOLDER, qname)
471
check_and_make_dir(path)
472
for slt in slts:
473
fname = '{title}.{ext}'.format(
0 commit comments