I've got the following __main__.py file:
def all():
print "hello world!"
if __name__ == "__main__":
print "bar"
How can I run function all
from the command line? The following don't seem to work:
python -c "import __main__; __main__.all()"
python .
I am not allowed to modify the __main__.py file. (This is for a FLOSS project that I'm trying to contribute to)