Skip to content

Instantly share code, notes, and snippets.

@tkanmae
Created August 24, 2011 17:26
Show Gist options
  • Save tkanmae/1168609 to your computer and use it in GitHub Desktop.
Save tkanmae/1168609 to your computer and use it in GitHub Desktop.
My usercustomize.py on Mac OS X
#!/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