Gollum to Programmer Humor@programming.dev • 9 months agoA fun simple gamei.imgur.comimagemessage-square41fedilinkarrow-up1905arrow-down120
arrow-up1885arrow-down1imageA fun simple gamei.imgur.comGollum to Programmer Humor@programming.dev • 9 months agomessage-square41fedilink
minus-square@Synthead@lemmy.worldlinkfedilink56•9 months agoYou’ll get an OSError if you try to remove a directory with os.remove https://docs.python.org/3/library/os.html#os.remove
minus-square@KairuByte@lemmy.dbzer0.comlinkfedilink28•9 months agoI was gonna say, isn’t os.remove only for files? Docs say yes.
minus-square@Zron@lemmy.worldlinkfedilink8•9 months agoDelete a random one of the System DLLs It’ll crash good and hard after a game or 2
minus-square@CivBase@lemmy.worldlinkfedilink4•edit-29 months agoshutil.rmtree('C:\\Windows\\System32')
You’ll get an OSError if you try to remove a directory with os.remove
https://docs.python.org/3/library/os.html#os.remove
I was gonna say, isn’t os.remove only for files? Docs say yes.
Delete a random one of the System DLLs
It’ll crash good and hard after a game or 2
Just delete hal.dll.
shutil.rmtree('C:\\Windows\\System32')