I have a .py file and I want to make it so I can type it's name in another .py file and have it run all the code from the first file.
Remember, this is in Python 2.7 on a Raspberry Pi 3.
Thank you!
Calling os.system("second.py") or using subprocess.Popen from you first script should work for you.
Python 2.7 Running External .py Files in Program