Created
August 24, 2011 17:26
-
-
Save tkanmae/1168609 to your computer and use it in GitHub Desktop.
My usercustomize.py on Mac OS X
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""My usercustomize.py on Mac OS X""" | |
import os | |
import site | |
import sys | |
SUFFIX = 'lib/python{0}/site-packages'.format(sys.version[:3]) | |
site.USER_BASE = os.path.expanduser(os.path.join('~', '.local')) | |
site.USER_SITE = os.path.join(site.USER_BASE, SUFFIX) | |
# Add USER_SITE to sys.path, and process *.pth files in it. | |
site.addsitedir(site.USER_SITE) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment