Mercurial > repos > sanbi-uwc > data_manager_novoalign_license_uploader
view 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 |
line wrap: on
line source
#!/usr/bin/env # Zipho Masholoigu (SANBI-UWC) import sys import os import tempfile import shutil import optparse import urllib2 import subprocess import logging log = logging.getLogger( __name__ ) LICENCE_TARGET_DIRECTORY = "tool-data/novoalign/" #Parse Command Line parser = optparse.OptionParser() args = parser.parse_args() filename = args[0] #read the contents of the license file license_str = open( filename ).read() #create the licence target directory os.mkdir( LICENCE_TARGET_DIRECTORY ) #save info to json file open( filename, 'wb' ).write( license_str )