SHARE
TWEET

Untitled

a guest Feb 25th, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  31. NotesPDF = SocNo + " Acquisition Notes.PDF"
  32. src = Path("M:/" + SocNo + "/Submission 1/Case Notes/" + NotesPDF)
  33. destPDrive = Path("Z:/Case Notes/2020/" + SocNo + "/" + SubNo)
  34.  
  35. if Path(src, destPDrive).exists():
  36.     print("Found PDF Files \nFound Target Destination")
  37. else:
  38.     Print("Couldnt Find Files")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top