Logo
Explore Help
Register Sign In
sadmen
/
jyoung
mirror of https://github.com/jyoung8607/openpilot.git
1
0
Fork
You've already forked jyoung
0
Code Issues Packages Projects Releases Wiki Activity
open source driving agent
560 Commits
101 Branches
34 Tags
1.6 GiB
Tree: 6abbda1467
jyoung/tools/lib/filereader.py

8 lines
200 B
Raw Normal View History Unescape Escape

Tools: Storage API (#1161) * filereader * support URLs in filereader, logreader * unused * use route files api; add auth file * Implement browser auth * Update readme, fix up cache paths * Add tests, clear token on 401 * Factor out URLFile * space
5 years ago
from common.url_file import URLFile
merge in tools
6 years ago
Tools: Storage API (#1161) * filereader * support URLs in filereader, logreader * unused * use route files api; add auth file * Implement browser auth * Update readme, fix up cache paths * Add tests, clear token on 401 * Factor out URLFile * space
5 years ago
def FileReader(fn, debug=False):
if fn.startswith("http://") or fn.startswith("https://"):
return URLFile(fn, debug=debug)
else:
return open(fn, "rb")
Powered by Gitea Version: 1.17.1 Page: 64ms Template : 2ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website