Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 17, 2009, 01:32 PM   #1
sinser
macrumors 6502a
 
Join Date: Sep 2003
python path

I'm on OS X 10.5.6 with Apple's provided Python ver. 2.5.1. I have created some Python modules and I want to add their path to sys.path permanently. I know one can use .pth files but I don't know where to put them.
sinser is offline   0 Reply With Quote
Old Apr 23, 2009, 09:09 PM   #2
bkap16
macrumors member
 
Join Date: Jan 2009
I believe you can put the .pth files anywhere that's already on sys.path. Looking at my own directories, /Library/Python/2.5/site-packages seems to be a good place.
bkap16 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Default Python PATH dct130 Mac Programming 1 Feb 12, 2014 08:25 AM
Python to X Code DShap5 Mac Programming 12 Mar 8, 2013 11:15 AM
Python Environment Telp Mac Programming 2 Jan 12, 2013 11:37 AM
Python 3.2.3 dboxall123 Mac Programming 4 Sep 27, 2012 10:53 AM
Learning Python nashyo Mac Programming 16 Aug 3, 2012 11:12 AM

Forum Jump

All times are GMT -5. The time now is 11:36 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC