in src/python/recursive-rat.py [0:0]
def enterRatCommand(rat = None):
'''If necessary, prompts user for an acceptable Rat command'''
if rat == None:
try:
rat = raw_input("Please enter Rat command (including path): ")
except EOFError:
raise UserAbortError()
if rat == "":
print "Rat command is required"
rat = enterRatCommand()
ratResult = popen(rat).close()
if not(ratResult == None):
print "Cannot execute " + rat
rat = enterRatCommand()
return rat