mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
* Define __file__ during conf.py execution.
* Make staticpath relative to conf.py dir.
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
# 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('.')
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
# General configuration
|
||||
# ---------------------
|
||||
|
||||
Reference in New Issue
Block a user