the opposite of
if __name__=="__main__"
(python)
is
#!/usr/bin/echo stop running this as a script
(*nix)
It might mess up syntax highlighting in some editors, but you can totally put that #!/usr/bin/echo message at the top of a python script

Autistic • asexual • nonbinary • nudist • roadgeek • computer programmer • EGA/VGA enthusiast • main fronter of Indigoville (plural system). 🟩English | 🟢Español | 🔶日本語 | 🔸العربية
the opposite of
if __name__=="__main__"
(python)
is
#!/usr/bin/echo stop running this as a script
(*nix)
It might mess up syntax highlighting in some editors, but you can totally put that #!/usr/bin/echo message at the top of a python script
Ohhh, what would be the easiest way to make it also return an error code to make the parent script halt (if it at least checks that or the right things are set)?