0

The problem I have is that when I am in my terminal and I am at the base. I want to for instance change my directory to downloads I was wondering how I would do that because then after I would change my directory I would be able to access certain files in download and tell the computer that I want all the information in this file so my code can run properly. Thank you

  • 1
    Are you in the interactive Python console? Or just in your terminal running bash, zsh whatever – Damiaan Jul 15 '22 at 20:04
  • 1
    Just open the files you want to open using their path, either absolute or relative. You can use the `os` module to help you construct paths and find files. You can use the `glob` module to grab files based on a pattern. Overall we need more details, and preferably some code in order to help. – crock Jul 15 '22 at 20:04
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jul 17 '22 at 19:50

1 Answers1

0

You could try to use os;

os.system('cd ./Downloads')
  • even if OP is at the base, I think it could be better to be a bit more explicit `~/Downloads`, just in case – tebkanlo Jul 15 '22 at 20:22