mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
715ab8b96a
So seamless.
12 lines
396 B
Python
12 lines
396 B
Python
__all__ = ['get_config_vars', 'get_path']
|
|
|
|
try:
|
|
# Python 2.7 or >=3.2
|
|
from sysconfig import get_config_vars, get_path
|
|
except ImportError:
|
|
from distutils.sysconfig import get_config_vars, get_python_lib
|
|
def get_path(name):
|
|
if name not in ('platlib', 'purelib'):
|
|
raise ValueError("Name must be purelib or platlib")
|
|
return get_python_lib(name=='platlib')
|