Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. str_list.append(getbitmapsfrom)
  2. game.bigbitmap = "i doubt this is there.bmp"
  3. str_list.append(game.bigbitmap)
  4. source = '\'.join(str_list)
  5. shutil.copy(source, newbigbmpname)
  6.  
  7. try:
  8. shutil.copy(src, dest)
  9. except IOError, e:
  10. print "Unable to copy file. %s" % e
  11.  
  12. try:
  13. shutil.copy(src, dest)
  14. except EnvironmentError:
  15. print "Error happended"
  16. else:
  17. print "OK"
  18.  
  19. try:
  20. shutil.copy(archivo, dirs)
  21. except EnvironmentError:
  22. print "Error en el copiado"
  23. escritura = "no se pudo copiar %s a %s n" % (archivo, dirs)
  24. log = open("/tmp/errorcreararboldats.log", "a")
  25. log.write(escritura)
  26. log.close()
  27. else:
  28. print "Copiado con exito"
  29. escritura = "%s --> %s n" % (archivo, dirs)
  30. log = open("/tmp/creararboldats.log", "a")
  31. log.write(escritura)
  32. log.close()
Add Comment
Please, Sign In to add comment