SiteMap  | About    

Python script executable on Unix

On Unix it works usually in the following way:

As the very first line of your file, using the pathname for where the Python interpreter is installed on your platform.

Put #!/usr/bin/env python in the first line of your .py script.

Add execution permissions to the file (using chmod).

Execute the script from command line , eg. by providing ./ when in the same directory. (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.