From 29ab041cb474852f748701aedc800b776bdc81c6 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 7 Apr 2014 11:09:31 -0400 Subject: wait on exit --- SelectiveGenomeAmplificationUI | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'SelectiveGenomeAmplificationUI') diff --git a/SelectiveGenomeAmplificationUI b/SelectiveGenomeAmplificationUI index 4455a02..98021a9 100755 --- a/SelectiveGenomeAmplificationUI +++ b/SelectiveGenomeAmplificationUI @@ -95,11 +95,18 @@ def variables_to_string(variables): def run(variables_as_a_string): import subprocess - subprocess.check_call(variables_as_a_string + " " + "SelectiveGenomeAmplification " + foreground + " " + background, shell=True) + try: + subprocess.check_call(variables_as_a_string + " " + "SelectiveGenomeAmplification " + foreground + " " + background, shell=True) + except: + pass + if(bool_ask("would you like to input all your variables at once?", "n")): variables = raw_input("Please paste in your variables (space delimited) and Run:") run(variables) + + raw_input("Press Enter to exit...") + else: for q in questions: if 'bool' in q: -- cgit v1.2.3