Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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 II
Creator II

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