I'm looking for a way to open another python file in the same folder, but it could be anywhere on a PC. (i.e when I send it to someone the program should be able to find it's way to the file (blahblahblah\IDLE\Login,py).
Here is the code I currently have after some googling, but I really have no idea what I'm doing.
from subprocess import call
import subprocess
import os
def main():
subprocess.call(['bash' , os.path.expanduser('~') + "\IDLE\Login.py" ] )
if __name__ == '__main__':
main()
I know that one of the subprocess imports are redundant but it's just a remnant of older code while I try to find this new way.
The end goal of the project is to use the main file and turn it into an executable to run all the other files in the directory which are called by each other.
Many thanks!