[Python-checkins] r62318 - doctools/trunk/sphinx/quickstart.py

georg.brandl python-checkins at python.org
Sun Apr 13 10:25:17 CEST 2008


Author: georg.brandl
Date: Sun Apr 13 10:25:17 2008
New Revision: 62318

Log:
Add advice about absolute paths to quickstart config.


Modified:
   doctools/trunk/sphinx/quickstart.py

Modified: doctools/trunk/sphinx/quickstart.py
==============================================================================
--- doctools/trunk/sphinx/quickstart.py	(original)
+++ doctools/trunk/sphinx/quickstart.py	Sun Apr 13 10:25:17 2008
@@ -29,10 +29,12 @@
 # All configuration values have a default value; values that are commented out
 # serve to show the default value.
 
-import sys
+import sys, os
 
-# If your extensions are in another directory, add it here.
-#sys.path.append('some/directory')
+# If your extensions are in another directory, add it here. If the directory
+# is relative to the documentation root, use os.path.abspath to make it
+# absolute, like shown here.
+#sys.path.append(os.path.abspath('some/directory'))
 
 # General configuration
 # ---------------------


More information about the Python-checkins mailing list