Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/python | |
| 2 """Fake code generator! It's awesome!""" | |
| 3 | |
| 4 from shutil import copyfile | |
| 5 import sys | |
| 6 import os | |
| 7 | |
| 8 | |
| 9 def main(destination): | |
| 10 | |
| 11 source = os.path.join( | |
| 12 os.path.dirname(os.path.realpath(__file__)), 'web', 'api') | |
| 13 | |
| 14 source_files = os.listdir(source) | |
| 15 | |
| 16 for source_file in source_files: | |
| 17 copyfile(os.path.join(source, source_file), | |
| 18 os.path.join(destination, source_file)) | |
| 19 | |
| 20 | |
| 21 if __name__ == '__main__': | |
| 22 sys.exit(main(sys.argv[1])) | |
| OLD | NEW |