user input

parent 0d24c30b
...@@ -40,15 +40,14 @@ def main(argv): ...@@ -40,15 +40,14 @@ def main(argv):
matchingProducts = set(fileNames).intersection(set(dirList)) matchingProducts = set(fileNames).intersection(set(dirList))
print ( str(len(matchingProducts))+" of " + str(len(fileNames)) +" products found.") 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 ="" text =""
while text != "yes" or text != "no": while text != "yes" or text != "no":
input("Do you want to link this products to "+outdir) input("Do you want to link this products 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) print (str(len(matchingProducts)) + " Linked to " + outdir)
if __name__ == "__main__": if __name__ == "__main__":
......
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