Skip to main content
Solved

Can you run a .py file and corresponding config file from FME?

  • April 13, 2022
  • 3 replies
  • 345 views

krystalp
Contributor
Forum|alt.badge.img+3

I've scoured the help pages and cannot seem to find the answer. I don't want to just copy and paste my python script in to the Startup Python script, I want to actually run the file and config file from FME. Is this possible?

Best answer by hkingsbury

A creator, into a system caller with the path to the python script specified would partially achieve it. It won't run it before the FME process kicks off, but it will be the first thing to run

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • April 13, 2022

Yes you can. Please see the article Startup Python Scripts in FME. You can find these articles via the Knowledge Base.

 


krystalp
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 7 replies
  • April 13, 2022

Yes you can. Please see the article Startup Python Scripts in FME. You can find these articles via the Knowledge Base.

 

No, this only allows the user to copy and paste python script into the Startup Python Script. I want to actually run a .py file and corresponding config file like I would from command line. Maybe I can write a python script to run a python script, but would prefer way in FME to actually run the .py file.

"In the Workbench Navigator pane under Workspace Parameters > Scripting, you will see a parameter called Startup Python Script. Right-click on the parameter and select Edit Parameter Value to open a special Python editing window. Here you can enter some Python code that will execute before the translation but after the execution of scripted parameters."


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • Best Answer
  • April 13, 2022

A creator, into a system caller with the path to the python script specified would partially achieve it. It won't run it before the FME process kicks off, but it will be the first thing to run