Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Tizzo
Contributor
Contributor

Create global context variables in Talend, then call upon those variables from within a python script that talend runs.

Create global context variables in Talend, then call upon those variables from within a python script that talend runs. I can't figure out a way to get it to work. I have tried creating the context variables I need, adding them to a tSystem command, then my command to run the Python file looks like "python /path/pythonfile.py ${dbname} ${host} ${pw}"

Labels (1)
  • Other

1 Reply
jeoste
Creator
Creator

If you want to make those variables accessible from outside, put them on a context file "env.conf" and decalre dbname, host and pw for example.

This way in Talend you'll load the variable from this file into your job, and in Python load the same way