I have tried to gather as much information as possible before posting this question but have had little luck. (I posted the links below.)
I have a file called "Intro.py" at this path, "programming/py_projects/Incubator/Course".
I have a file called "Python.command" on my desktop. Within the command file I have the following lines:
cd ../programming/py_projects/Incubator/Course
bash python Intro.py
When I run the command file (double click), terminal opens and this is the result:
/Users/muhs_a/Desktop/Python.command: line 1: cd: ../programming
/py_projects/Incubator/course: No such file or directory
/usr/bin/python: /use/bin/python: cannot execute binary file
logout
I just want to be able to double click on the Python.command file and have the program written in Intro.py to run in the terminal. Where am I going wrong?
How to create a batch file in mac?
Why do people write #!/usr/bin/env python on the first line of a Python script?
How do I make this file.sh executable via double click?