Skip to content

Commit 3cbbf04

Browse files
authored
Added run instructions for Windows
1 parent 191aedf commit 3cbbf04

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,38 @@ cd leetcode-anki
3333
```
3434

3535
After that initialize and activate python virtualenv somewhere
36+
37+
Linux/MacOS
3638
```
3739
virtualenv -p python leetcode-anki
3840
. leetcode-anki/bin/activate
3941
```
4042

43+
Windows
44+
```
45+
python -m venv leetcode-anki
46+
.\leetcode-anki\Scripts\activate.bat
47+
```
48+
4149
Then initialize session id variable. You can get it directly from your browser (if you're using chrome, cookies can be found here chrome://settings/cookies/detail?site=leetcode.com)
50+
51+
Linux/Macos
4252
```
4353
export LEETCODE_SESSION_ID="yyy"
4454
```
4555

46-
And finally run
56+
Windows
57+
```
58+
set LEETCODE_SESSION_ID="yyy"
59+
```
60+
61+
And finally run for Linux/MacOS
4762
```
4863
make generate
4964
```
65+
Or for Windows
66+
```
67+
python generate.py
68+
```
5069

5170
You'll get `leetcode.apkg` file, which you can import directly to your anki app.

0 commit comments

Comments
 (0)