Skip to content

Commit 70e4a87

Browse files
committed
version the pathlib import
1 parent 5b9818b commit 70e4a87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cwltool/resolver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
from __future__ import absolute_import
22
import logging
33
import os
4+
import sys
45

5-
from pathlib import Path
6+
if sys.version_info < (3, 4):
7+
from pathlib2 import Path
8+
else:
9+
from pathlib import Path
610
from six.moves import urllib
711

812

0 commit comments

Comments
 (0)