comparison upload_novoalign_lic.py @ 0:0b64aa6d4214 draft

planemo upload for repository https://github.com/zipho/data_manager_novoalign_license_uploader commit fdbfeddc2f83df93d20ce1e75193bb5a8db2524a
author sanbi-uwc
date Sun, 28 Feb 2016 14:51:11 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0b64aa6d4214
1 #!/usr/bin/env
2 # Zipho Masholoigu (SANBI-UWC)
3
4 import sys
5 import os
6 import tempfile
7 import shutil
8 import optparse
9 import urllib2
10 import subprocess
11
12 import logging
13 log = logging.getLogger( __name__ )
14
15 LICENCE_TARGET_DIRECTORY = "tool-data/novoalign/"
16
17 #Parse Command Line
18 parser = optparse.OptionParser()
19 args = parser.parse_args()
20
21 filename = args[0]
22
23 #read the contents of the license file
24 license_str = open( filename ).read()
25
26 #create the licence target directory
27 os.mkdir( LICENCE_TARGET_DIRECTORY )
28
29 #save info to json file
30 open( filename, 'wb' ).write( license_str )