py script modify it's Modified Time?

kyosohma at kyosohma at
Wed Apr 11 15:33:57 CEST 2007

On Apr 11, 6:14 am, "est" <electronix... at> wrote:
> I guess os.stat() could retrieve information about ctime, mtime of a
> path, but how can I change them? Is it possible to make it work both
> under Win32 and Linux?
> P.S. How to get the current running python?  (Like
> WScript.ScriptFullName in vbscript)

I am not sure if you can change a creation time of a file on NT, but
the rest sounds possible; according to this post anyway:

It mentions using the win32 modules, which can be found here:

As to your last question of finding the current running python, use
the sys module's "executable" method, like so: sys.executable


More information about the Python-list mailing list