top of page
  • Writer: VC Healy
    VC Healy
  • Oct 1, 2020
  • 1 min read

Further to the previous post, a quick way to find out which files have been made executable with a shebang it is as simple as running the command to list the files in that directory.

Mac: ls


Windows: dir (Note the attribute to the left of each file those are files set to execute)

I only wish I could get it to work LOL



 
 
  • Writer: VC Healy
    VC Healy
  • Oct 1, 2020
  • 1 min read

This certainly is OS dependant.


The Tiny Python Projects Ch1 Pt4 (the shebang),

In this YouTube video, the presenter is using a Mac and the command:

#!/usr/bin/env python3


The error message for running a file with the above is: The system cannot find the path specified.


This does not work in Windows.

If you are using Windows you will have to find the location of the python.exe

and point the shebang there.

For me, I installed Python 3.8.6 in the root of C, in a folder Python386/ therefore

the shebang should be this:

#!/Python386/python


 
 
  • Writer: VC Healy
    VC Healy
  • Oct 1, 2020
  • 1 min read

I decided to have a bash at writing hello world code in a few programming languages that I have used. Then compared them with online tutorials to see how I did, (After testing they did print).



 
 

© 2020 by Vincent Healy. Proudly created with Wix.com

bottom of page