Skip to content

Commit 2b46cdb

Browse files
Update check for hdfs
1 parent fac9ea7 commit 2b46cdb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/scip/main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,14 @@ def cli(**kwargs):
452452
if len(kwargs["paths"]) == 0:
453453
return
454454

455+
def check(p: str) -> bool:
456+
if p.startswith("hdfs"):
457+
return True
458+
return os.path.isabs(p)
455459
if kwargs["mode"] == "external":
456-
assert os.path.isabs(kwargs["output"]), "Output path must be absolute in external mode."
460+
assert check(kwargs["output"]), "Output path must be absolute in external mode."
457461
err = "Paths must be absolute in external mode."
458-
assert all([os.path.isabs(p) for p in kwargs["paths"]]), err
462+
assert all([check(p) for p in kwargs["paths"]]), err
459463

460464
runtime = main(**kwargs)
461465

0 commit comments

Comments
 (0)