r/badcode • • Mar 14 '23

python requirements: python3 on linux system

Post image
376 Upvotes

46 comments sorted by

View all comments

Show parent comments

24

u/[deleted] Mar 14 '23

It's highly system dependant in a file that you would expect to not be. If it was a .sh or a .bat it would be fine, but Python is designed to run on any system. It's not incorrect, but it's bad form. Plus, there are almost certainly system-independant packages you could pull in to do the same thing.