fonttools/install.py
Just 6cc5887e46 Added the TTX main program, the command line programs and additional files.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@3 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 22:04:30 +00:00

18 lines
460 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, "ttlib.pth")
pth_file = open(pth_path, "w")
pth_file.write(ttlibdir + '\n')
pth_file.close()