Python Path and .pth files
So…I have a django app I’ve been running on one of our old servers for a while and it’s time to move the client off to one of the new servers.
cPanel’d the account over, no problem, application moved with it, no problem, only the app won’t run.
To make a long story short, couldn’t figure out why sys.path() wasn’t returning my current directory whereas it was on the old server.
Turns out I had added a .pth file to /usr/local/lib/python2.4/site-packages/.
This time, however, I left myself a note here and in the application directory so I wouldn’t forget.
Oh, also remember to unblock the port in the firewall and restart the firewall.
Unit Testing Objective-C with Python
Just a quick link to a cool blog post. I’ve done a bunch of this that I’ll write about when I get time but this could get you started. If you cared.