Skip to content

Commit cf3e49f

Browse files
jfennickmr-c
authored andcommitted
guard import fcntl for windows
1 parent 20f01e0 commit cf3e49f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cwltool/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
"""Shared functions and other definitions."""
22
import collections
3-
import fcntl
3+
4+
try:
5+
import fcntl
6+
except ImportError:
7+
# Guard against `from .utils import ...` on windows.
8+
# See windows_check() in main.py
9+
pass
410
import importlib.metadata
511
import os
612
import random

0 commit comments

Comments
 (0)