PythonWorker main.py

IT it at plastipol.com
Wed Nov 13 15:01:52 UTC 2024


Hi all,

I’m trying to execute a python program from an Omnis Python worker.


The python program receives three parameters that are working directories.

I can execute the Python program from macOS terminal with this:

python3 procesar_pdfs.py /Users/admin/READ /Users/admin/SAVE /Users/admin/OUTPUT


Now I’m trying to configure inside the python worker directory the necessary files.
I have a folder named procesar_pdfs with my python code procesar_pdfs.py and a requirements.txt.

Following Omnis docs I need to set up a main.py in this same folder but not sure what needs to write in this file.

Could anyone bring me some light with this?

Thank you in advance.

regards


xavier



More information about the omnisdev-en mailing list