Skip to content

Commit 16cc1d0

Browse files
committed
pcmt
1 parent b993170 commit 16cc1d0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

requirements/packs/scripts/_pytest.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ popd >nul
115115
popd >nul
116116
:after
117117
rmdir /s /q "%PKGDIR%" >nul 2>&1
118-
goto :eof
118+
goto :eof

src/diffpy/cmi/conda.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
##############################################################################
1515

1616
import json
17+
import os
1718
import subprocess
1819
import sys
19-
import os
2020
from dataclasses import dataclass
2121
from pathlib import Path
2222
from 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)

0 commit comments

Comments
 (0)