fix filereader cd:/ replacement

old-commit-hash: df35ebdceb
commatwo_master
Greg Hogan 4 years ago
parent b32725c94f
commit c0e265b859
  1. 2
      tools/lib/filereader.py

@ -5,7 +5,7 @@ DATA_PREFIX = os.getenv("DATA_PREFIX", "http://data-raw.internal/")
def FileReader(fn, debug=False):
if fn.startswith("cd:/"):
fn.replace("cd:/", DATA_PREFIX)
fn = fn.replace("cd:/", DATA_PREFIX)
if fn.startswith("http://") or fn.startswith("https://"):
return URLFile(fn, debug=debug)
return open(fn, "rb")

Loading…
Cancel
Save