Python terminal command?


i have finished python script, ready me use. now, there way compile it, or that, use in /bin? or other way can type "thescript" terminal, instead of "python /users/username/library/myscripts/thescript.py" ideas?
 

put:

code:
#!/usr/bin/env python
on line 1 of script (make sure thing on line) , add script path (don't put in /bin though, system directory use /usr/local/bin instead).
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Has to be the funniest headline ive ever seen

Man Brings Goat to Apple Store and has Pizza Delivered

Elusive Ninja: The Shadowy Thief - Can you survive the fast-paced ninja chaos?