File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
requirements/packs/scripts Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -115,4 +115,4 @@ popd >nul
115115popd > nul
116116:after
117117rmdir /s /q " %PKGDIR% " > nul 2 >& 1
118- goto :eof
118+ goto :eof
Original file line number Diff line number Diff line change 1414##############################################################################
1515
1616import json
17+ import os
1718import subprocess
1819import sys
19- import os
2020from dataclasses import dataclass
2121from pathlib import Path
2222from typing import List , Optional , Sequence , Tuple
@@ -98,10 +98,11 @@ def run(
9898 do_capture = (not dbg ) if capture is None else bool (capture )
9999 qcmd = " " .join (str (x ) for x in cmd )
100100
101- win = ( os .name == "nt" )
101+ win = os .name == "nt"
102102 prog = str (cmd [0 ]).lower () if cmd else ""
103103 needs_cmd = win and (
104- prog .endswith ("\\ conda.bat" ) or prog .endswith ("\\ mamba.bat" )
104+ prog .endswith ("\\ conda.bat" )
105+ or prog .endswith ("\\ mamba.bat" )
105106 or prog in ("conda" , "conda.bat" , "mamba" , "mamba.bat" )
106107 )
107108 argv = (["cmd" , "/c" ] + list (cmd )) if needs_cmd else list (cmd )
You can’t perform that action at this time.
0 commit comments