Is it possible to find out, at runtime, the date and time that pyinstaller created a frozen executable?

15 views
Skip to first unread message

Andy Norman

unread,
Aug 31, 2015, 4:17:37 PM8/31/15
to PyInstaller
Hi folks.

I had a browse through the source before asking, but didn't find what I was looking for.

Using pyinstaller under Windows 7, with the --onefile option, is it possible at runtime for a python program to find out *when* it was frozen?  I know that sys.frozen tells me that I am frozen, but I'd like to know when I was frozen... i.e. when the .exe was created by pyinstaller.

Looking at the timestamps on the files in the _MEIPASS directory doesn't help, as they are set to the last time they were unpacked.

Thanks! :)

-- gyre --


Martin Zibricky

unread,
Aug 31, 2015, 4:23:09 PM8/31/15
to pyins...@googlegroups.com
Hi gyre,

there is nothing like that in PyInstaller.

I think this would be like a replacement for proper version string in your
app?
signature.asc

gyre

unread,
Aug 31, 2015, 5:16:52 PM8/31/15
to pyins...@googlegroups.com
OK. I was outputting the current version of the app... but wanted to give a bit more information such as when it was frozen. I can work around it with a suitable Makefile, but didn't want to re-invent the wheel :)

Thanks.

-- gyre --
> --
> You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/H0s0KY28rHk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
> To post to this group, send email to pyins...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.

Hartmut Goebel

unread,
Sep 1, 2015, 3:09:10 AM9/1/15
to pyins...@googlegroups.com
Am 31.08.2015 um 22:23 schrieb Martin Zibricky:
there is nothing like that in PyInstaller.

And I do not see quite much use in this, as it would contradict deterministic build. If someone really wants to have this, she could simply add some datafile.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/ein-repo-fur-f-droid-erstellen
Kolumne: http://www.cissp-gefluester.de/2011-08-horrorszenario-bring-your-own-device

signature.asc
Reply all
Reply to author
Forward
0 new messages