Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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