Yes, path is absolute, no SELinux enabled, and the accessing process is 
apache - as expected. But since permissions allow read/write for world, the 
latter should not matter.
I actually do this:
    si = os.stat(fn)
    fn_txt = re.sub(r'\.yaml$', '.txt', fn)
    si_txt = os.stat(fn_txt)
    #print fn, si.st_mtime, fn_txt, si_txt.st_mtime
    #print os.geteuid(), os.getgid()
    if si.st_mtime < si_txt.st_mtime:
        # set file's mtime, keep its ctime
        #os.utime(fn, (si.st_ctime, si_txt.st_mtime) )
        # xxx st_mtime is read-only attribute xxx si.st_mtime = 
si_txt.st_mtime
        # re-read stat
        si = os.stat(fn)
If mtime of a *.txt file is newer than that of corresponding *.yaml file, 
change mtime of yaml file. Still have no clue why it fails.

Dirk

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/NlYwWmUyWGR5QVlK.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to