Skip to content

Instantly share code, notes, and snippets.

@ZeccaLehn
Last active June 1, 2016 17:23
Show Gist options
  • Save ZeccaLehn/2536ee123a4e3644d3ceaec4a272a17c to your computer and use it in GitHub Desktop.
Save ZeccaLehn/2536ee123a4e3644d3ceaec4a272a17c to your computer and use it in GitHub Desktop.
Change Absolute Path Directory in Python 3
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