Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 408c16f

Browse files
committed
Added a note about making sure the Lac/Lib directory is in sys.path.
1 parent 6438e1d commit 408c16f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Mac/OSX/README

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ To create a fullblown Python.app proceed as follows.
1515
5. It is probably a good idea to add the Mac-specific modules to the framework,
1616
with "make installmacsubtree". This puts a MacPython lib directory into
1717
sys.prefix/Mac/Lib. Again, this is a temporary measure.
18-
18+
6. To actually find the Lib directory installed in step 5 you add a line
19+
to your site.py file (the one in /Library/Frameworks/....):
20+
sys.path.append(os.path.join(sys.prefix, 'Mac/Lib'))
21+
1922
You are now done. In your Applications you should have a "Python", with the icon
2023
being a falling 16 Ton weight with a shadow under it. You can drop Python scripts
2124
on this and the will be run, in a full-windowing environment. Note that you
2225
do not get sys.stdin, and that sys.stdout goes to the console (Use
2326
Applications/Utilities/Console to see it).
2427

28+
For some reason the application only accepts files with TEXT type, not straight unix
29+
typeless files.
30+
2531
Something to take note of is that the ".rsrc" files in the distribution are not
2632
actually resource files, they're AppleSingle encoded resource files.
2733

28-
Jack Jansen, [email protected], 6-Sep-01.
34+
Jack Jansen, [email protected], 11-Sep-01.

0 commit comments

Comments
 (0)