[cig-commits] r4425 - in short/3D/PyLith/branches/pylith-0.8/tutorials: reversenog/archive splitcube/archive

baagaard at geodynamics.org baagaard at geodynamics.org
Thu Aug 24 15:29:31 PDT 2006


Author: baagaard
Date: 2006-08-24 15:29:31 -0700 (Thu, 24 Aug 2006)
New Revision: 4425

Modified:
   short/3D/PyLith/branches/pylith-0.8/tutorials/reversenog/archive/tutor.py
   short/3D/PyLith/branches/pylith-0.8/tutorials/splitcube/archive/tutor.py
Log:
Switched from copyfile() to copy() to preserve permissions on executable scripts.

Modified: short/3D/PyLith/branches/pylith-0.8/tutorials/reversenog/archive/tutor.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/tutorials/reversenog/archive/tutor.py	2006-08-24 22:23:14 UTC (rev 4424)
+++ short/3D/PyLith/branches/pylith-0.8/tutorials/reversenog/archive/tutor.py	2006-08-24 22:29:31 UTC (rev 4425)
@@ -144,8 +144,8 @@
       if filename in dirFiles:
         print "  %s...already present" % filename
       else:
-        shutil.copyfile("../archive/%s" % filename,
-                        "./%s" % filename)
+        shutil.copy("../archive/%s" % filename,
+                    "./%s" % filename)
         print "  %s...retrieved from archive" % filename
   else:
     raise ValueError("Unrecognized mode: %s" % mode)

Modified: short/3D/PyLith/branches/pylith-0.8/tutorials/splitcube/archive/tutor.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/tutorials/splitcube/archive/tutor.py	2006-08-24 22:23:14 UTC (rev 4424)
+++ short/3D/PyLith/branches/pylith-0.8/tutorials/splitcube/archive/tutor.py	2006-08-24 22:29:31 UTC (rev 4425)
@@ -144,8 +144,8 @@
       if filename in dirFiles:
         print "  %s...already present" % filename
       else:
-        shutil.copyfile("../archive/%s" % filename,
-                        "./%s" % filename)
+        shutil.copy("../archive/%s" % filename,
+                    "./%s" % filename)
         print "  %s...retrieved from archive" % filename
   else:
     raise ValueError("Unrecognized mode: %s" % mode)



More information about the cig-commits mailing list