Gollum@feddit.de to Programmer Humor · 2 years agoA fun simple gamei.imgur.comimagemessage-square42linkfedilinkarrow-up1911arrow-down121
arrow-up1890arrow-down1imageA fun simple gamei.imgur.comGollum@feddit.de to Programmer Humor · 2 years agomessage-square42linkfedilink
minus-squareSynthead@lemmy.worldlinkfedilinkarrow-up58·2 years 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-squareKairuByte@lemmy.dbzer0.comlinkfedilinkarrow-up29·2 years agoI was gonna say, isn’t os.remove only for files? Docs say yes.
minus-squareZron@lemmy.worldlinkfedilinkarrow-up8·2 years agoDelete a random one of the System DLLs It’ll crash good and hard after a game or 2
minus-squareCivBase@lemmy.worldlinkfedilinkarrow-up4·edit-22 years 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')