Answers for "python cd into directory"

6

python cd to directory

import os
os.chdir(path)
Posted by: Guest on March-02-2020
1

python cd to script directory

import os

os.chdir(os.path.dirname(__file__))
Posted by: Guest on May-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language