Does anybody know how to capture outputs/print statements from a python script running through a user tool?
As of right now I can't seem to get the statements to update as they're printed like they do if I run the script from a python shell, or a plugin with Notepad++. I get all statements at the very end of the script, which makes the print statements not very useful. In my tool configuration I have the following settings:
I've found a few other threads regarding this, but no solutions. Thanks for any input you might be able to provide.
As of right now I can't seem to get the statements to update as they're printed like they do if I run the script from a python shell, or a plugin with Notepad++. I get all statements at the very end of the script, which makes the print statements not very useful. In my tool configuration I have the following settings:
Code: Select all
Command:
Menu item name:
Run Script in Python
Command line:
C:\Python27\ArcGIS10.2\python.exe %F
Options:
DOS program
Save active file
Output:
Show DOS box
Capture output
Output to list box
Captured output