tronds

Backup playerstats and launch game

Oct 28th, 2012
313
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. from os import getcwd, startfile
  2. from shutil import make_archive
  3.  
  4. if not (getcwd().endswith("Call of Duty 4")): #Covers both CD and Steam paths
  5.     print "Place this file in the Call of Duty 4 root-directory"
  6.     raise SystemExit
  7. #Backup
  8. make_archive("backup-players","zip","players")
  9. #Start
  10. startfile("iw3mp.exe")
Advertisement
Comments
  • Comment was deleted
Add Comment
Please, Sign In to add comment