Ubah Direktori di Python OS
import os
path = "C:\Users\Your\Directory"
os.chdir(path)
Joyous Jellyfish
import os
path = "C:\Users\Your\Directory"
os.chdir(path)
os.chdir(os.path.dirname(__file__))
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)