I want to use the refactoring allowed by PyDev, but I think it's a little ridiculous to create a project folder in my Eclipse workspace for every little python script that I create.
I can get refactoring by editing the file in Eclipse using File > Open File... However, I still need to go to the terminal to run the file. It would be nice to run it in Eclipse.
I tried to configure Run > External Tools > External Tools Configurations... using Location
/Library/Frameworks/Python.framework/Versions/Current/bin/python
and arguments
${resource_loc}
Presumably this will invoke the python interpreter using an open file. But this is not so. All I get is:
Variable references empty selection: ${resource_loc}
Stack Overflow.site/questions/460957 / ... has the same problem as me, but the selected answer has nothing to do with the empty problem ${resource_loc} .
How to run external python programs in Eclipse?
Chris redford
source share