user input

parent 0d24c30b
......@@ -40,16 +40,15 @@ def main(argv):
matchingProducts = set(fileNames).intersection(set(dirList))
print ( str(len(matchingProducts))+" of " + str(len(fileNames)) +" products found.")
for f in matchingProducts:
print (f)
os.system("ln -s " + inDir+f + " " + outdir+f)
text =""
while text != "yes" or text != "no":
input("Do you want to link this products to "+outdir)
print (str(len(matchingProducts)) + " Linked to " + outdir)
if text="yes":
for f in matchingProducts:
print (f)
os.system("ln -s " + inDir+f + " " + outdir+f)
print (str(len(matchingProducts)) + " Linked to " + outdir)
if __name__ == "__main__":
main(sys.argv)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment