PageRenderTime 32ms CodeModel.GetById 24ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/scripts/nosetests.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 20 lines | 12 code | 5 blank | 3 comment | 0 complexity | e763e89913cf21ea2511ebd0972187df MD5 | raw file
 1#!/usr/bin/env python
 2# EASY-INSTALL-ENTRY-SCRIPT: 'nose','console_scripts','nosetests'
 3#__requires__ = 'nose'
 4import os, sys
 5
 6new_path = [ os.path.join( os.getcwd(), "lib" ) ]
 7new_path.extend( sys.path[1:] )
 8sys.path = new_path
 9
10from galaxy import eggs
11eggs.require( 'nose' )
12eggs.require( 'NoseHTML' )
13
14from pkg_resources import load_entry_point
15
16assert sys.version_info[:2] >= ( 2, 4 )
17
18sys.exit(
19   load_entry_point('nose', 'console_scripts', 'nosetests')()
20)