i was just wondering how i can change the location/directory that python uses to navigate and open files.
I am a super noob so please use small words if you help me, and if you do, thanks.
In case it matter, i use two mass storage devices one is located under the A:\ and the other using the default C:. From memory i installed python under the A drive even though i know some parts are under the C drive. I also believe that i have set my mass storage devices up in AHCI or IDE.
Example Code:
File_Test = open("Test.txt", "r")
This then produces the error:
Traceback (most recent call last): File "", line 1, in File_Test = open("Test.txt", "r") IOError: [Errno 2] No such file or directory: 'Test.txt'"
Which from what i understand is python can't find the directory under which thise file is located.
I would really like to know how to make python locate files in my specified directory. If you can help i would be very appreciative, thanks.