Skip to content

Commit 763b16b

Browse files
committed
better windows compat
1 parent 9b92079 commit 763b16b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cwltool/singularity.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
from subprocess32 import (check_call, check_output, # pylint: disable=import-error
1717
CalledProcessError, DEVNULL, PIPE, Popen,
1818
TimeoutExpired)
19-
else:
19+
elif os.name == 'posix':
2020
from subprocess import (check_call, check_output, # type: ignore
21-
CalledProcessError, PIPE, Popen,
21+
CalledProcessError, DEVNULL, PIPE, Popen,
2222
TimeoutExpired)
23-
DEVNULL = None
23+
else: # we're not on Unix, so none of this matters
24+
pass
2425

2526
_logger = logging.getLogger("cwltool")
2627
_USERNS = None

0 commit comments

Comments
 (0)