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
if __name__ == '__main__':
waf_scripts = []
for key, func in get_functions().items():
if type(func).__name__ == 'function':
waf_scripts.append(key)
if input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
waf_scripts = []
for key, func in get_functions().items():
if type(func).__name__ == 'function':
waf_scripts.append(key)
for func in waf_scripts:
cmd = "waf {}".format(func)
print("Running {}".format(cmd))
os.system(cmd)
for func in waf_scripts:
cmd = "waf {}".format(func)
print("Running {}".format(cmd))
os.system(cmd)