I used Eclipse with PyDev to create a script in Python (windows 7 x64). My code runs perfect when I start the run in Eclipse, but when I add it as a Tool in ArcGIS 10.1, I have the following problems:
If I select ‘run python script in progress’ (which I know I shouldn’t do):

If I don’t select ‘run python script in progress’, there are two possibilities:
1) Eclipse is closed when I start the run:
ArcGIS automatically opens Eclipse, and the script seems to run, but doesn’t do anything, this windows stays open until I cancel the run:

2) If eclipse is opened before I start the run, it seems as if the run is completed within 0.00 seconds, but the script was not executed…:

My configuration in eclipse is as follows (anaconda python + paths for functionalities arcgis):
I run the tool in ArcGIS without any parameters, so the code is exactly the same as the code that I run from Eclipse… I already tried this solution, but it doesn’t seem to work for me: