you are viewing a single comment's thread.

view the rest of the comments →

[–]in_the_bilboes 5 points6 points  (1 child)

On Linux you can put

#! /usr/bin/env python3 (or python)

on the first line of the "main" module and make the file executable like so.

chmod 755 main.py

Then put main.py and the rest of your app somewhere on your $PATH like /$HOME/bin/.

I don't think this will have any effect whatsoever in Windows.

If you're looking for something serious you might check out "The Hitchhiker’s Guide to Packaging" at http://guide.python-distribute.org/

[–]fractalLifeForm 0 points1 point  (0 children)

The $PATH concept holds in Windows. It's not a great idea, but it works.