Changeset 1109 for trunk/sphinxdocs/find_undoc.py
- Timestamp:
- Oct 15, 2013 5:08:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sphinxdocs/find_undoc.py
r939 r1109 11 11 12 12 # loop over python files in subversion 13 #for fil in glob.iglob(os.path.join(loc,'..','GSAS*.py')):14 13 proc = sp.Popen(["svn","list",os.path.join(loc,'..')],stdout=sp.PIPE) 14 undoc = [] 15 15 for fil in proc.stdout.readlines(): 16 fil = fil.strip() 17 print fil+'...', 16 18 if os.path.splitext(fil.strip())[1] != ".py": continue 17 19 if os.path.splitext(os.path.split(fil)[1])[0] in documented: 18 #print 'doc'20 print 'doc' 19 21 continue 20 22 else: 21 print ".. automodule:: "+os.path.splitext(os.path.split(fil)[1])[0] 22 print " :members: " 23 print "" 23 print '\n'+fil+' undocumented' 24 undoc.append(fil) 25 for fil in undoc: 26 print ".. automodule:: "+os.path.splitext(os.path.split(fil)[1])[0] 27 print " :members: " 28 print ""
Note: See TracChangeset
for help on using the changeset viewer.