1999-12-16 22:04:30 +00:00
|
|
|
#! /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
|
1999-12-17 12:42:24 +00:00
|
|
|
pth_path = os.path.join(libdir, "FontTools.pth")
|
1999-12-16 22:04:30 +00:00
|
|
|
pth_file = open(pth_path, "w")
|
|
|
|
pth_file.write(ttlibdir + '\n')
|
|
|
|
pth_file.close()
|