Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python to mac executable

I have changed the mode by

sudo chmod +x file-name.py

Then Added the following line on top of the file-name.py

#!/usr/bin/env python

Then run the file by running ./file-name.py command and it works fine
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #mac #executable
ADD COMMENT
Topic
Name
8+8 =