Mercurial > repos > dfornika > snippy
comparison snippy_core_wrapper.py @ 13:c92d935dc8ab draft
planemo upload for repository https://github.com/tseemann/snippy commit 93b22331ca83a82fdfbe8f2b274577e21f9bf025-dirty
| author | dfornika |
|---|---|
| date | Mon, 21 Jan 2019 19:58:51 -0500 |
| parents | a2f07b210776 |
| children | bf6dbc4d4957 |
comparison
equal
deleted
inserted
replaced
| 12:a2f07b210776 | 13:c92d935dc8ab |
|---|---|
| 30 for indir in args.indirs.split(','): | 30 for indir in args.indirs.split(','): |
| 31 base_name = os.path.basename(indir) | 31 base_name = os.path.basename(indir) |
| 32 copyfile(indir, base_name) | 32 copyfile(indir, base_name) |
| 33 subprocess.Popen(['tar', '-xf', base_name]) | 33 subprocess.Popen(['tar', '-xf', base_name]) |
| 34 | 34 |
| 35 extracted_dirs = [f.path for f in os.listdir('.') if os.path.isdir(f) ] | 35 extracted_dirs = [f for f in os.listdir('.') if os.path.isdir(f) ] |
| 36 | 36 |
| 37 for extracted_dir in extracted_dirs: | 37 for extracted_dir in extracted_dirs: |
| 38 snippy_core_command_line.append(extracted_dir) | 38 snippy_core_command_line.append(extracted_dir) |
| 39 | 39 |
| 40 subprocess.Popen(snippy_core_command_line) | 40 subprocess.Popen(snippy_core_command_line) |
