Installing a script and use it via python -m

Cameron Simpson cs at
Sat Jan 7 16:31:48 EST 2012

On 07Jan2012 10:32, Oktaka Com <oktakaweb at> wrote:
| Is there a way to do below:
| 1) install via some script:
| 2) python -m
| In fact, this question opens to: Is there a platform independent way
| to copy to somewhere that the system will search for?

Depends what's in your $PYTHONPATH I think, but has an "install
for user" option. Use that, then plain old python -m xxx (note: no .py
here - it is the module name, not the file pathname).

Cameron Simpson <cs at> DoD#743

I will not do it as a hack       I will not do it for my friends
I will not do it on a Mac        I will not write for Uncle Sam
I will not do it on weekends     I won't do ADA, Sam-I-Am
        - Gregory Bond <gnb at>

More information about the Python-list mailing list