Logo
Explore Help
Register Sign In
sadmen
/
openpilot_comma
mirror of https://github.com/commaai/openpilot.git
1
0
Fork
You've already forked openpilot_comma
0
Code Issues Packages Projects Releases Wiki Activity
openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
1067 Commits
133 Branches
82 Tags
6.0 GiB
Tree: ec2b82f11c
openpilot_comma/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 old-commit-hash: c4af05868ba82d4295e3f508e8477f2f6f898834
5 years ago
from common.url_file import URLFile
merge in tools old-commit-hash: 29ac3da7b84426c6764150cb233b9c7bab1446d8
5 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 old-commit-hash: c4af05868ba82d4295e3f508e8477f2f6f898834
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: 113ms Template : 4ms
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