Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run(analysis_settings, number_of_processes=-1):
if number_of_processes == -1:
number_of_processes = multiprocessing.cpu_count()
genbash(number_of_processes, analysis_settings, 'run_ktools.sh')
try:
subprocess.check_call(['bash', 'run_ktools.sh'])
except subprocess.CalledProcessError as e:
raise OasisException('Error running ktools: {}'.format(e.stderr))