Is there a way to enable a package to be executed as a script? For example:
[~]# easy_install /path/to/foo.egg ... [~]# python -m foo --name World Hello Worl
as long as the package is on the python path, add at the end of the script.
if __name__ == "__main__": call_script()
$ python -m module_name
will run the module e.g
python -m random