Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a python script that I'm using in tSystem component. How do I make this script part of deployment when deploying my Talend jobs to Remote Engine?
Found a better way to do this.
Add python script under Resource. Then, create 2 context variable:
#1 for python path
"cmd /c python "
#2 for referring a Resource
Then in you tSystem component
set Command to be
context.python_path + context.aurora_config_script
It can be further simplified by adding Python path in the script itself using shebang, then you don't need python_path context variable.
This also helps with maintaining separate repository for your scripts.
good question!
would be interesting - if proper solution available.
we deploy scripts independently and "hard-soft" code name:
so, all script located in the same root folder which could be adjusted by context variable
Found a better way to do this.
Add python script under Resource. Then, create 2 context variable:
#1 for python path
"cmd /c python "
#2 for referring a Resource
Then in you tSystem component
set Command to be
context.python_path + context.aurora_config_script
It can be further simplified by adding Python path in the script itself using shebang, then you don't need python_path context variable.
This also helps with maintaining separate repository for your scripts.
good choice! unfortunately, will work only for the subscription version
but still good