Thread: [Pydev-users] python + jython in single project: possible?
Brought to you by:
fabioz
From: Devin V. <ven...@gm...> - 2008-12-30 18:28:53
|
I've just added a bit of jython code to an existing python project. I always assumed that since you are prompted to choose between jython and python every time you RUN that you would be able to select any .py file and run it as either python or jython. But I discovered that the active interpreter is set as the root project level, and that you must choose between the configurations. Am I missing something? Is there a way to specify that the content of a directory or even a particular file should be interpreted as jython, even if the PyDev project type is set to python? I'm curious about why we would always see both python and jython listed in the Run as... dialog if the choice is strictly boolean. Thanks! |
From: Fabio Z. <fa...@gm...> - 2008-12-30 19:21:44
|
I think that's a bug (you should be able to run it any way independent of the project type). As for the analysis/code-completion (and file content), you have to choose a single thing for the whole project (either the project is python or jython) and that's a limitation that is probably not going to be removed (maybe there could be a 'mixed mode', so that code-completion would show things for both and analysis could warn that some thing would work at jython but not python and vice-versa, but that's very tricky in the current structure and there are no plans for implementing it). Cheers, Fabio On Tue, Dec 30, 2008 at 4:28 PM, Devin Venable <ven...@gm...> wrote: > I've just added a bit of jython code to an existing python project. I > always assumed that since you are prompted to choose between jython and > python every time you RUN that you would be able to select any .py file and > run it as either python or jython. > > But I discovered that the active interpreter is set as the root project > level, and that you must choose between the configurations. > > Am I missing something? Is there a way to specify that the content of a > directory or even a particular file should be interpreted as jython, even if > the PyDev project type is set to python? > > I'm curious about why we would always see both python and jython listed in > the Run as... dialog if the choice is strictly boolean. > > Thanks! > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > > |