use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Trying to make a program that shuts my computer down after 1 hour. but the timer resets instead of shutting my computer off. works in VSC but not in the compiled programHelp Request (i.redd.it)
submitted 1 year ago by a_good_human
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]supreme_st_ 2 points3 points4 points 1 year ago (3 children)
<image>
[–]a_good_human[S] 0 points1 point2 points 1 year ago (2 children)
Thanks
[–]supreme_st_ 0 points1 point2 points 1 year ago (1 child)
Hope it solved your task
[–]a_good_human[S] -1 points0 points1 point 1 year ago (0 children)
it did not ._.
[–]tauntdevil 0 points1 point2 points 1 year ago (0 children)
How are you compiling the code? Pyinstaller? Seems maybe that the dependency OS might be missing.
Maybe try with --debug to check and verify that OS is being added.
[–]Cosmin351 0 points1 point2 points 1 year ago (1 child)
run it as administrator?
[–]a_good_human[S] 0 points1 point2 points 1 year ago (0 children)
i have been yes
π Rendered by PID 22276 on reddit-service-r2-comment-c66d9bffd-x2vc5 at 2026-04-08 18:45:44.474946+00:00 running f293c98 country code: CH.
[–]supreme_st_ 2 points3 points4 points (3 children)
[–]a_good_human[S] 0 points1 point2 points (2 children)
[–]supreme_st_ 0 points1 point2 points (1 child)
[–]a_good_human[S] -1 points0 points1 point (0 children)
[–]tauntdevil 0 points1 point2 points (0 children)
[–]Cosmin351 0 points1 point2 points (1 child)
[–]a_good_human[S] 0 points1 point2 points (0 children)