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

Mail will not Quit when shutting down

MacBook Air 2011 Reviews

What's the max amount of RAM an iMac can have to run BootCamp & Parallels Windows 7?