Last active
June 1, 2016 17:23
-
-
Save ZeccaLehn/2536ee123a4e3644d3ceaec4a272a17c to your computer and use it in GitHub Desktop.
Change Absolute Path Directory in Python 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import expanduser | |
home = expanduser("~") | |
path = os.path.join(home, 'Desktop') | |
os.chdir(path) | |
os.listdir() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment