diff --git a/fetch.py b/fetch.py index 5b9997a8..91d40cda 100644 --- a/fetch.py +++ b/fetch.py @@ -35,4 +35,7 @@ def fetch_file(url): print('fatal: error running "gsutil": %s' % e.output, file=sys.stderr) sys.exit(1) + if scheme == 'file': + with open(url[len('file://'):], 'rb') as f: + return f.read() raise ValueError('unsupported url %s' % url)