Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
bonfy committed Feb 21, 2019
1 parent 9d56fdf commit d379557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leetcode_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SOLUTION_FOLDER_NAME = 'solutions'
SOLUTION_FOLDER = Path.joinpath(HOME, SOLUTION_FOLDER_NAME)
CONFIG_FILE = Path.joinpath(HOME, 'config.cfg')
COOKIE_PATH = 'cookies.json'
COOKIE_PATH = Path.joinpath(HOME, 'cookies.json')
BASE_URL = 'https://leetcode.com'
# If you have proxy, change PROXIES below
PROXIES = None
Expand Down Expand Up @@ -467,7 +467,7 @@ def _download_code_by_quiz(self, quiz):

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

0 comments on commit d379557

Please sign in to comment.