0

I'm developing a system, and I have build a code generator that emits a bunch of classes based on a configuration file.

I would like to configure PyDev to invoke the generator for me whenever the configuration file (or the generator source) changes. I know that this is possible "in theory" because e.g., the ANTLR plugin for Eclipse does this in Java.

Is there any kind of support in PyDev for doing this? If not, is there some other Eclipse hackery that I can use to get this working?

Austin Hastings
  • 617
  • 4
  • 13

2 Answers2

1

It should be possible to do what you want using an external builder inside Eclipse...

Right click project > properties > builders > new > program, then configure the program as python having as a parameter the module to run and receiving as arguments also the ${build_files} variable (if it's a python script, you have to put your Python.exe as the executable, your main file as an argument and then the ${build_files} variable).

Fabio Zadrozny
  • 24,814
  • 4
  • 66
  • 78
0

Only for those coming here through Google

You may want to check this out....

http://www.rose-hulman.edu/class/csse/resources/Eclipse/eclipse-python-configuration.htm

Karthik S
  • 847
  • 1
  • 8
  • 22
  • This appears to be generic instructions for configuring pydev, plus installing some specific configuration settings for the csse course. It does NOT appear to actually answer my question about generating code under PyDev. Did I miss something amid all the screen shots? – Austin Hastings Mar 31 '12 at 16:20