Skip to content

Commit

Permalink
guard import fcntl for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jfennick authored and mr-c committed Sep 27, 2023
1 parent 20f01e0 commit cf3e49f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cwltool/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
"""Shared functions and other definitions."""
import collections
import fcntl

try:
import fcntl
except ImportError:
# Guard against `from .utils import ...` on windows.
# See windows_check() in main.py
pass
import importlib.metadata
import os
import random
Expand Down

0 comments on commit cf3e49f

Please sign in to comment.