File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ def main() -> None:
373373 rstspec_bytes = HTTPCache .singleton ().get (args ["--rstspec" ])
374374 rstspec_text = str (rstspec_bytes , "utf-8" )
375375 else :
376- rstspec_text = Path (rstspec_path ).read_text (encoding = "utf-8" )
376+ rstspec_text = Path (rstspec_path ).expanduser (). read_text (encoding = "utf-8" )
377377 specparser .Spec .initialize (rstspec_text )
378378
379379 if PARANOID_MODE :
@@ -392,7 +392,7 @@ def main() -> None:
392392 connection = pymongo .MongoClient (url , password = getpass .getpass ())
393393 backend : Backend = MongoBackend (connection )
394394 elif output_path :
395- zf = zipfile .ZipFile (output_path , mode = "w" )
395+ zf = zipfile .ZipFile (os . path . expanduser ( output_path ) , mode = "w" )
396396 backend = ZipBackend (zf )
397397 else :
398398 backend = Backend ()
You can’t perform that action at this time.
0 commit comments