| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!python3 |
||
| 2 | """Platform independent file copier script, taken from SciPy.""" |
||
| 3 | |||
| 4 | import argparse |
||
| 5 | import shutil |
||
| 6 | |||
| 7 | |||
| 8 | def main(): |
||
| 9 | parser = argparse.ArgumentParser() |
||
| 10 | parser.add_argument("infiles", nargs='+', |
||
| 11 | help="Paths to the input files") |
||
| 12 | parser.add_argument("outdir", |
||
| 13 | help="Path to the output directory") |
||
| 14 | args = parser.parse_args() |
||
| 15 | for infile in args.infiles: |
||
| 16 | shutil.copy2(infile, args.outdir) |
||
| 17 | |||
| 18 | |||
| 19 | if __name__ == "__main__": |
||
| 20 | main() |
||
| 21 |