[py-svn] r33125 - py/dist/py/bin

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Oct 10 18:37:19 CEST 2006


Author: cfbolz
Date: Tue Oct 10 18:37:19 2006
New Revision: 33125

Modified:
   py/dist/py/bin/py.rest
Log:
use the rst2pdfconfig file if one of the same name exists.


Modified: py/dist/py/bin/py.rest
==============================================================================
--- py/dist/py/bin/py.rest	(original)
+++ py/dist/py/bin/py.rest	Tue Oct 10 18:37:19 2006
@@ -66,8 +66,13 @@
                 process_configfile(p, options.debug)
             else:
                 if options.topdf:
-                    process_rest_file(p.localpath,
-                                      options.stylesheet,
+                    cfg = p.new(ext=".rst2pdfconfig")
+                    if cfg.check():
+                        print "using config file %s" % (cfg, )
+                        process_configfile(cfg, options.debug)
+                    else:
+                        process_rest_file(p.localpath,
+                                          options.stylesheet,
                                       options.debug)
                 else:
                     rest.process(p)


More information about the py-svn mailing list