!/usr/bin/env python
import sys import ToBuildOrNot
repoArray = ["MSS_sims","PCS_CCS"]
def main(argv): for repo in repoArray:
needsBuild = ToBuildOrNot.ToBuildOrNot(repo)
if needsBuild == True:
print "\n",repo,"Needs To rebuilt\n"
print "---------------------------------------------------------------"
elif needsBuild == False:
print "\n", repo,"does NOT Need to be Rebuilt\n"
print "---------------------------------------------------------------"
else:
print "error"
if name == 'main': main(sys.argv[1:])
needsBuild
/not needsBuild
is presumably sufficient (unless you're expecting more than two possible values) - but do you have a question? – Jon Clements Jun 26 at 17:16needsBuild
. You can then useif needsBuild:
orif not needsBuild:
like you would for any other if block – recursive Jun 26 at 17:23