[Twisted-Python] Re: [Twisted-web] installed twisted. twisted.web missing?
![](https://secure.gravatar.com/avatar/dd1243740a09f0676ef225404105cfc0.jpg?s=120&d=mm&r=g)
I saw this pop up over on -web, but I'd like to ask about this... On Oct 29, 2007, at 3:49 AM, David Reid wrote:
This seems like a relatively large issue with respect to Twisted support on Mac OS X. Is it really going to be necessary to set an environment variable anywhere you want to use Twisted? I guess this would be an issue for any of the packages distributed in Extras, but this is the one I have the most opinions about ;-)... Is there some other way to modify your path? I assume .pth files won't work for this, since they only append to the path. -phil
![](https://secure.gravatar.com/avatar/dd1243740a09f0676ef225404105cfc0.jpg?s=120&d=mm&r=g)
On Oct 29, 2007, at 11:01 AM, Phil Christensen wrote:
I'm going to answer my own question on this. A nice way to fix this is to create a .pth file in /Library/Python/2.5/site-packages, with the following line: import sys; sys.path.insert(0, '/Library/Python/2.5/site-packages') On my machine for some reason i see the site-packages directory in there twice (even before this .pth file was added), so there's a part of me that wants to go with: import sys; sys.path = [s for s in sys.path if s != '/Library/Python/ 2.5/site-packages']; sys.path.insert(0, '/Library/Python/2.5/site- packages') but that only seems to get rid of one of them. It doesn't seem to matter anyways, so I guess the first version is good enough. -phil
![](https://secure.gravatar.com/avatar/dd1243740a09f0676ef225404105cfc0.jpg?s=120&d=mm&r=g)
On Oct 29, 2007, at 11:01 AM, Phil Christensen wrote:
I'm going to answer my own question on this. A nice way to fix this is to create a .pth file in /Library/Python/2.5/site-packages, with the following line: import sys; sys.path.insert(0, '/Library/Python/2.5/site-packages') On my machine for some reason i see the site-packages directory in there twice (even before this .pth file was added), so there's a part of me that wants to go with: import sys; sys.path = [s for s in sys.path if s != '/Library/Python/ 2.5/site-packages']; sys.path.insert(0, '/Library/Python/2.5/site- packages') but that only seems to get rid of one of them. It doesn't seem to matter anyways, so I guess the first version is good enough. -phil
participants (1)
-
Phil Christensen