Commit f27ec7f6 authored by Chris Shallue's avatar Chris Shallue Committed by Christopher Shallue
Browse files

Update file permission mask in generate_download_script.py.

PiperOrigin-RevId: 202034593
parent 3f5cef69
...@@ -33,6 +33,7 @@ from __future__ import print_function ...@@ -33,6 +33,7 @@ from __future__ import print_function
import argparse import argparse
import csv import csv
import os import os
import stat
import sys import sys
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
...@@ -90,7 +91,9 @@ def main(argv): ...@@ -90,7 +91,9 @@ def main(argv):
f.write("echo 'Finished downloading {} Kepler targets to {}'\n".format( f.write("echo 'Finished downloading {} Kepler targets to {}'\n".format(
num_kepids, FLAGS.download_dir)) num_kepids, FLAGS.download_dir))
os.chmod(FLAGS.output_file, 0o744) # Make the download script executable. # Make the download script executable.
os.chmod(FLAGS.output_file, stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH)
print("{} Kepler targets will be downloaded to {}".format( print("{} Kepler targets will be downloaded to {}".format(
num_kepids, FLAGS.output_file)) num_kepids, FLAGS.output_file))
print("To start download, run:\n {}".format("./" + FLAGS.output_file print("To start download, run:\n {}".format("./" + FLAGS.output_file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment