mailr14355 - /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 August 11, 2011 - 15:48:
Author: bugman
Date: Thu Aug 11 15:48:27 2011
New Revision: 14355

URL: http://svn.gna.org/viewcvs/relax?rev=14355&view=rev
Log:
Improved the list of modules and packages used in the epydoc documentation.

The files and directories which are not python modules or packages are now 
properly skipped.


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=14355&r1=14354&r2=14355&view=diff
==============================================================================
--- 1.3/scons/manuals.py (original)
+++ 1.3/scons/manuals.py Thu Aug 11 15:48:27 2011
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2006, 2009 Edward d'Auvergne                                 
 #
+# Copyright (C) 2006-2011 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -23,7 +23,7 @@
 
 # Import statements.
 from glob import glob
-from os import F_OK, access, chdir, getcwd, path, remove, rename, sep, system
+from os import F_OK, access, chdir, getcwd, listdir, path, remove, rename, 
sep, system
 import sys
 
 from version import version
@@ -93,7 +93,7 @@
 
     # exclude
     #   The list of objects to exclude.
-    exclude = ['sample_scripts', 'scripts']
+    exclude = ['graphics', 'sample_scripts', 'scripts']
 
     # output
     #   The type of output that should be generated.  Should be one
@@ -246,8 +246,16 @@
     for name in exclude:
         epydoc_cmd = epydoc_cmd + ' --exclude=' + name
 
-    # Document all code!
-    epydoc_cmd = epydoc_cmd + ' *'
+    # All the files of the current directory.
+    blacklist = ['README', 'relax.bat']
+    files = listdir(getcwd())
+    for file in files:
+        # Blacklisted.
+        if file in blacklist:
+            continue
+
+        # Otherwise add it.
+        epydoc_cmd = "%s %s" % (epydoc_cmd, file)
 
 
     # Execute Epydoc.




Related Messages


Powered by MHonArc, Updated Thu Aug 11 16:00:02 2011