Skip to content

Instantly share code, notes, and snippets.

@tjgordon
Created June 15, 2017 17:40
Show Gist options
  • Save tjgordon/7ff2618193c8ebcf47dc6766a940f287 to your computer and use it in GitHub Desktop.
Save tjgordon/7ff2618193c8ebcf47dc6766a940f287 to your computer and use it in GitHub Desktop.
[tgordon@VP11]~% python
Python 2.7.13 (default, May 10 2017, 20:04:28)
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> os.path.join(os.path.expanduser("~"), '.config', 'tapioca')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> import os
>>> os.path.join(os.path.expanduser("~"), '.config', 'tapioca')
'/home/tgordon/.config/tapioca'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment