Execute Python Script

San
San New Altair Community Member
edited November 2024 in Community Q&A
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.
Tagged:

Best Answer

  • kayman
    kayman New Altair Community Member
    Answer ✓
    You 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.

Answers

  • kayman
    kayman New Altair Community Member
    Answer ✓
    You 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.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.