if conf_parser.has_option('local_setup', 'genome_dir'):
options.genome_dir = conf_parser.get('local_setup', 'genome_dir')
- print 'USING OPTIONS:'
- print ' URL:', options.url
- print ' OUT:', options.output_filepath
- print ' FC:', options.flowcell
- print 'GDIR:', options.genome_dir
- print ''
+ logging.info('USING OPTIONS:')
+ logging.info(' URL: %s' % (options.url,))
+ logging.info(' OUT: %s' % (options.output_filepath,))
+ logging.info(' FC: %s' % (options.flowcell,))
+ logging.info('GDIR: %s' % (options.genome_dir,))
return options
try:
web = urllib2.urlopen(url)
except urllib2.URLError, e:
- errmsg = 'URLError: %s' % (e.reason,)
+ errmsg = 'URLError: %d %s' % (e.code, e.msg)
logging.error(errmsg)
logging.error('opened %s' % (url,))
raise IOError(errmsg)
#!/usr/bin/env python
+import logging
import sys
from htsworkflow.pipelines.retrieve_config import *
from htsworkflow.pipelines import retrieve_config
return 0
if __name__ == "__main__":
+ logging.basicConfig(level=logging.INFO)
sys.exit(main(sys.argv[1:]))