The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Execute Python Script
Hello all, i am giving input file as txt from my local repository path inside python script as input for converting txt to json and storing it in a local repository as json. But I would like to read txt through read document operator and then give that example set or a document as input to execute python script operator. Please tell me how to do it or just share those small snippet.
0
Best Answer
-
kayman Member Posts: 662 UnicornYou could store your snippet in a macro before you execute your python, and just call it back from within your python script. Using the %{my_macro_value} works directly in the python operator.0