aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2012-03-31 16:30:09 -0700
committerBrian Harring <ferringb@gmail.com>2012-03-31 16:30:09 -0700
commit91d6982d32ad7f6c75cb1ef9f7db874442f1029b (patch)
treed720776adf5a51399a9ca7bdc748519be6715750 /doc
parentFix py3k compatibility for new version functionality. (diff)
downloadsnakeoil-91d6982d32ad7f6c75cb1ef9f7db874442f1029b.tar.gz
snakeoil-91d6982d32ad7f6c75cb1ef9f7db874442f1029b.tar.bz2
snakeoil-91d6982d32ad7f6c75cb1ef9f7db874442f1029b.zip
Import api generation update that tracks the scripts mtime in addition.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/generate_api_rsts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/generate_api_rsts.py b/doc/generate_api_rsts.py
index 89ff86fe..d8c7f45f 100755
--- a/doc/generate_api_rsts.py
+++ b/doc/generate_api_rsts.py
@@ -59,7 +59,8 @@ def generate_rst(modpath, module, handle=None):
def regen_if_needed(src, out_path):
module = load_module(src)
- cur_time = int(os.stat(module.__file__).st_mtime)
+ cur_time = max([int(os.stat(module.__file__).st_mtime),
+ int(os.stat(__file__).st_mtime)])
try:
trg_time = int(os.stat(out_path).st_mtime)
except EnvironmentError, e: