mailr9643 - /1.3/scons/manuals.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 07, 2009 - 18:48:
Author: bugman
Date: Wed Oct  7 18:48:19 2009
New Revision: 9643

URL: http://svn.gna.org/viewcvs/relax?rev=9643&view=rev
Log:
Partial bug fix for bug #14464 (https://gna.org/bugs/?14464).

Fix for the PDF manual compilation - os.rename() is being used instead of 
shutil.move().  No idea
why shutil.move() was no longer working?!?


Modified:
    1.3/scons/manuals.py

Modified: 1.3/scons/manuals.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/scons/manuals.py?rev=9643&r1=9642&r2=9643&view=diff
==============================================================================
--- 1.3/scons/manuals.py (original)
+++ 1.3/scons/manuals.py Wed Oct  7 18:48:19 2009
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2006 Edward d'Auvergne                                       
 #
+# Copyright (C) 2006, 2009 Edward d'Auvergne                                 
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -23,8 +23,7 @@
 
 # Import statements.
 from glob import glob
-from os import F_OK, access, chdir, getcwd, path, remove, sep, system
-from shutil import move
+from os import F_OK, access, chdir, getcwd, path, remove, rename, sep, system
 import sys
 
 from version import version
@@ -371,7 +370,7 @@
     if access('relax.ps', F_OK):
         remove('relax.ps')
     if access('relax.pdf', F_OK):
-        move('relax.pdf', path.pardir)
+        rename('relax.pdf', path.pardir+path.sep+'relax.pdf')
 
     # Return to the base directory.
     chdir(base_dir)




Related Messages


Powered by MHonArc, Updated Wed Oct 07 19:40:03 2009