diff options
author | 2012-03-31 16:30:09 -0700 | |
---|---|---|
committer | 2012-03-31 16:30:09 -0700 | |
commit | 91d6982d32ad7f6c75cb1ef9f7db874442f1029b (patch) | |
tree | d720776adf5a51399a9ca7bdc748519be6715750 /doc | |
parent | Fix py3k compatibility for new version functionality. (diff) | |
download | snakeoil-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-x | doc/generate_api_rsts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/generate_api_rsts.py b/doc/generate_api_rsts.py index 89ff86f..d8c7f45 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: |