Update file.py (#2013)

pull/2020/head
Nguyen Viet Dung 2 years ago committed by GitHub
parent 6a38ded24e
commit 904624d46f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -57,7 +57,7 @@ def get_file(path: str, try_local_path: bool = False) -> str:
Returns:
The local path to the file
"""
assert path.startswith(("/", "./")) or path.startswith(
assert path.startswith(("/", "./", "../")) or path.startswith(
"target:"
), "get_file called with incorrect path"

Loading…
Cancel
Save