git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@7 4cde692c-a291-49d1-8350-778aa11640f8
18 lines
464 B
Python
18 lines
464 B
Python
#! /usr/bin/env python
|
|
|
|
import sys, os
|
|
|
|
ttlibdir = os.path.join(os.getcwd(), "Lib")
|
|
|
|
if sys.platform not in ('win32', 'mac'):
|
|
libdir = os.path.join(sys.exec_prefix,
|
|
'lib',
|
|
'python' + sys.version[:3],
|
|
'site-packages')
|
|
else:
|
|
libdir = sys.exec_prefix
|
|
pth_path = os.path.join(libdir, "FontTools.pth")
|
|
pth_file = open(pth_path, "w")
|
|
pth_file.write(ttlibdir + '\n')
|
|
pth_file.close()
|