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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
sarora1
Creator
Creator

How to deploy Python code thats being called from tSystem on Remote Engine

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?

 

Labels (2)
1 Solution

Accepted Solutions
sarora1
Creator
Creator
Author

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  

0683p000009M6ix.png

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. 

View solution in original post

3 Replies
vapukov
Master II
Master II

good question!

 

would be interesting - if proper solution available.

 

we deploy scripts independently and "hard-soft" code name:

  • variable name - context.script_root 
  • relative path to script from parent folder

so, all script located in the same root folder which could be adjusted by context variable

 

 

sarora1
Creator
Creator
Author

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  

0683p000009M6ix.png

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. 

vapukov
Master II
Master II

good choice! unfortunately, will work only for the subscription version

but still good