I want to use the refactoring enabled by PyDev but think it is a little ridiculous to create a project folder in my Eclipse workspace for every single little python script I create.
I'm able to get refactoring by editing the file in Eclipse using File > Open File.... However, I still have to go to the Terminal to run the file. It would be nice to just run it in Eclipse.
I've tried setting up a Run > External Tools > External Tools Configurations... using the Location
/Library/Frameworks/Python.framework/Versions/Current/bin/python
and the Arguments
${resource_loc}
Presumably, this would call the python interpreter using the opened file. But it doesn't. All I get is:
Variable references empty selection: ${resource_loc}
This StackOverflow question has the same problem as I do, but the selected answer has nothing to do with the empty ${resource_loc} problem.
How do I run external python programs in Eclipse?