Can the cd command in Python be used to change directories like in the terminal?

22 Replies, 1348 Views

Lol, I feel you. The cd command Python version is `os.chdir()`, but it’s not as instant as the terminal.

If you’re into automation, you might wanna look into `shutil` for file operations. It’s not exactly the same, but it’s super useful.

Also, this site might help: [Python Module of the Week](https://pymotw.com).

Messages In This Thread



Users browsing this thread: 1 Guest(s)