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
115
115
popd > nul
116
116
:after
117
117
rmdir /s /q " %PKGDIR% " > nul 2 >& 1
118
- goto :eof
118
+ goto :eof
Original file line number Diff line number Diff line change 14
14
##############################################################################
15
15
16
16
import json
17
+ import os
17
18
import subprocess
18
19
import sys
19
- import os
20
20
from dataclasses import dataclass
21
21
from pathlib import Path
22
22
from typing import List , Optional , Sequence , Tuple
@@ -98,10 +98,11 @@ def run(
98
98
do_capture = (not dbg ) if capture is None else bool (capture )
99
99
qcmd = " " .join (str (x ) for x in cmd )
100
100
101
- win = ( os .name == "nt" )
101
+ win = os .name == "nt"
102
102
prog = str (cmd [0 ]).lower () if cmd else ""
103
103
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" )
105
106
or prog in ("conda" , "conda.bat" , "mamba" , "mamba.bat" )
106
107
)
107
108
argv = (["cmd" , "/c" ] + list (cmd )) if needs_cmd else list (cmd )
You can’t perform that action at this time.
0 commit comments