Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. import shutil, os, os.path
  2. from pathlib import Path
  3. from shutil import copyfile
  4.  
  5. def Socrates():
  6. global SocNo
  7. SocNo=(str(input("Insert Socrates Number: ")))
  8. if SocNo.isalpha():
  9. print("Invalid input.")
  10. print("")
  11. Socrates()
  12. print("You have chosen: " +str(SocNo))
  13. return Socrates
  14.  
  15. def Submission():
  16. global SubNo
  17. SubNo = (str(input("Submission Number: ")))
  18. if SubNo.isalpha():
  19. print("Invalid input.")
  20. print("")
  21. Submission()
  22. return Submission
  23.  
  24. Socrates()
  25. print()
  26. Submission()
  27. print()
  28.  
  29. # SocYear = SocNo[0:2]
  30. # ()destPDrive = Path("Z:/Case Notes/2020/" + SocNo + "/" + SubNo)
  31. NotesPDF = SocNo + " Acquisition Notes.PDF"
  32. src = Path("M:/" + SocNo + "/Submission 1/Case Notes/" + NotesPDF)
  33.  
  34. if Path(src).exists():
  35. print("yes")
  36. else:
  37. print("no")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement