I’m going to start learning Python. I’ve actually read the documentation several times, but reading docs and actually building something are two totally different beasts. Anyway, this blog will serve as a way for me to self motivate, and to document my experiences.
I’ve started down the road to learning Pylons. Sounds great – except for the part where I want to use Eclipse in Windows. I’ve been an Eclipse user for many years now and have found it to be quite invaluable. I’m trying to set up Pydev (the Python plugin for Eclipse) so that I can run paster serve development.ini. The problem is that you need to be in a Pylons environment, which is normally done with Scripts/Activate.bat. Two things would need to happen when I click run: first the activate.bat, then the paster serve line.
So of course, Eclipse doesn’t allow this to happen. Writing a batch file doesn’t work either; it ignores the paster serve line after the activate runs, because it’s technically a new environment. I read of someone linking directly to the paste script and running the serve, but that doesn’t work either, because it needs to be in the Pylons environment. There is a paster.exe that’s included, but Eclipse won’t let you run an exe like that directly. (No, you can’t use paster.exe as the executable, either.)
I suppose it makes sense to have the server run in a separate command line and then just save in Eclipse and the server will update as needed. Still, it seems that there should be a solution here, but I just can’t find one. Seems odd that I’m the only person on the whole Internet to have this issue…