Remove unnecessary uses of open_remote() where we know __file__ will always be local
This commit is contained in:
parent
b5b3b2546c
commit
611633fcf6
@ -775,7 +775,7 @@ def create_inference_graph(batch_size=1, n_steps=16, tflite=False):
|
||||
|
||||
|
||||
def file_relative_read(fname):
|
||||
return open_remote(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
|
||||
def export():
|
||||
|
||||
@ -76,7 +76,7 @@ def maybe_download_tc_bin(**kwargs):
|
||||
os.chmod(final_file, final_stat.st_mode | stat.S_IEXEC)
|
||||
|
||||
def read(fname):
|
||||
return open_remote(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Tooling to ease downloading of components from TaskCluster.')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user