Tool: Execute Python script (help?)

Discussion Forums discussion Tool: Execute Python script (help?)

This topic contains 0 voices and has 3 replies.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
January 20, 2011 at 7:39 pm #5169

cxg
Member

I’ve got a relatively simple tool I’ve rigged up to run my Python scripts that looks like this:

Name: Execute

Command: %(PYTHON_HOME)python.exe

Folder: %d

Parameters: %f

It works great for running simple console apps and basic Tkinter GUI apps as well, but when I try to run it with wxPython code it just hangs. Is there anything I can do differently to make it run my wxPython scripts properly? Thanks. –cxg

January 21, 2011 at 1:48 pm #17529

rimkojr
Member

Guessing that the hang is due to PN capturing the output of the script. Try creating another tool that does not capture output; maybe name it “Execute (No Capture)” or something. Then uncheck “Capture output” in “Edit Tool Properties->Console I/O”. Then use this tool when working with wxPython.

January 22, 2011 at 4:55 am #17530

cxg
Member

Huh.. yeah, that does work. I have no idea why it didn’t like capturing the output, but that fixed it. Thanks. :)

January 23, 2011 at 7:53 pm #17531

simon
Key Master

Yeah, there’s an annoying issue where anything that shows a UI breaks tools that capture at the moment, I’ll need to do some research to work out if I can capture output at the same time as allowing UI to show.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.