Added prompt to automated install

This commit is contained in:
Jake Howard 2016-02-05 18:19:08 +00:00
parent e96dd2aa23
commit 0af40bdabe

View file

@ -11,12 +11,13 @@ def get_functions():
return ns return ns
if __name__ == '__main__': if __name__ == '__main__':
waf_scripts = [] if input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
for key, func in get_functions().items(): waf_scripts = []
if type(func).__name__ == 'function': for key, func in get_functions().items():
waf_scripts.append(key) if type(func).__name__ == 'function':
waf_scripts.append(key)
for func in waf_scripts: for func in waf_scripts:
cmd = "waf {}".format(func) cmd = "waf {}".format(func)
print("Running {}".format(cmd)) print("Running {}".format(cmd))
os.system(cmd) os.system(cmd)