Helge Posted March 17, 2020 Share Posted March 17, 2020 Hello everybody, is it possible to pipe what is usually shown as react_output.txt (when you push the button "view results") from a python script into a user defined text file? Cheers, Helge Quote Link to comment Share on other sites More sharing options...
Helge Posted March 30, 2020 Author Share Posted March 30, 2020 Does anybody know...? ? Quote Link to comment Share on other sites More sharing options...
Jia Wang Posted March 30, 2020 Share Posted March 30, 2020 Hello Helge, Sorry about the delayed response. If you would like to put the results in a file, you can try exec_cmd with the normal "print" command in combination with the "suffix" command for changing the name just like one would normally do. The file should still get generated. If you would like a file name besides what can be done directly in React ( React_output[SUFFIX].txt ) then you can try a simple file rename in Python. Hope this helps, Jia Wang Quote Link to comment Share on other sites More sharing options...
Helge Posted March 31, 2020 Author Share Posted March 31, 2020 This works: myGWB.exec_cmd('print react_output.txt') os.rename(r'react_output.txt',r'<whatever name>') Thanks, Helge Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.