Skip to content

Commit 2bf570e

Browse files
committed
Added relative path options, solves issue #3
1 parent 0bdfe31 commit 2bf570e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CFAPyX/chunkwrapper.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,12 @@ def open(self):
272272
filenames = [filenames]
273273

274274
# Tidy code - never going to be many filenames
275-
local = [l for l in filenames if '://' not in l]
276-
remote = [r for r in filenames if '://' in r]
275+
local = [l for l in filenames if '://' not in l]
276+
remote = [r for r in filenames if '://' in r]
277+
relative = [d for d in filenames if d[:5] not in ('https','s3://','file:')]
277278

278-
# Prioritise remote options first if any are present.
279-
filenames = remote + local
279+
# Prioritise relative then remote options first if any are present.
280+
filenames = relative + remote + local
280281

281282
for filename in filenames:
282283
try:

0 commit comments

Comments
 (0)