So i created a batch file that opens a python file. The only way it seems to be working is if I save the file in the working directory but i don't want to have it saved there. How could i be able to do this without saving it in the working directory of python.
I'm not sure. This video is based on errors I see my students making, and I haven't had them do that, so I can't give you a set of potential errors from experience. I just wrote one and it can open a Python file in the same directory, via a relative path, or via an absolute path. Off the top of my head, I think potential errors are (I'm not implying you haven't checked these things -- just suggestions) that you have something wrong in your path (possibly whitespace characters in the path?) or that you don't have your environment variables set?
Well, I'm so glad!! 😊 These are the errors I see my students making most often -- I guess they're pretty common! Thank you for commenting. I like to know when people find my content useful! 😁
I know this comment is a year old but this video was great help and solved the issue i was dealing with for hours. Thank youuu!
I'm so glad it helped! Thank you for commenting! 😊
So i created a batch file that opens a python file. The only way it seems to be working is if I save the file in the working directory but i don't want to have it saved there. How could i be able to do this without saving it in the working directory of python.
and yes i used the absolute path and still get Errno 2 no such file or directory
I'm not sure. This video is based on errors I see my students making, and I haven't had them do that, so I can't give you a set of potential errors from experience. I just wrote one and it can open a Python file in the same directory, via a relative path, or via an absolute path. Off the top of my head, I think potential errors are (I'm not implying you haven't checked these things -- just suggestions) that you have something wrong in your path (possibly whitespace characters in the path?) or that you don't have your environment variables set?
@@DesignCodeDebugRepeat hmm it sounds like I might not have my environment variables set. Thanks for the help!
@@blacklotus432That's possible! Good luck to you.
thanks noticed that I had a space in the file name LOL
Oh, good catch! In a graphical user interface you don't have this problem, because you can use a file picker dialog box. 😁
wish I could like this as many times as ive used it haha
Well, I'm so glad!! 😊 These are the errors I see my students making most often -- I guess they're pretty common! Thank you for commenting. I like to know when people find my content useful! 😁