File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 8
8
from json import JSONDecodeError
9
9
import logging
10
10
import os
11
+ import platform
11
12
import site
12
13
from pathlib import Path
13
14
import shutil
@@ -406,7 +407,13 @@ def main():
406
407
html = renderer .to_html (** results )
407
408
with tempfile .NamedTemporaryFile (mode = "w" , delete = False , suffix = ".html" ) as html_file :
408
409
html_file .write (html )
409
- url = f"file://{ html_file .name } "
410
+
411
+ if "microsoft-standard" in platform .uname ().release :
412
+ stream = os .popen (f"wslpath -m { html_file .name } " )
413
+ wsl_path = stream .read ().strip ()
414
+ url = f"file://{ wsl_path } "
415
+ else :
416
+ url = f"file://{ html_file .name } "
410
417
else :
411
418
url = f"https://submit.cs50.io/check50/{ tag_hash } "
412
419
Original file line number Diff line number Diff line change 29
29
"console_scripts" : ["check50=check50.__main__:main" ]
30
30
},
31
31
url = "https://github.com/cs50/check50" ,
32
- version = "3.3.6 " ,
32
+ version = "3.3.7 " ,
33
33
include_package_data = True
34
34
)
You can’t perform that action at this time.
0 commit comments