Solved

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

  • 13 April 2022
  • 3 replies
  • 56 views

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?

icon

Best answer by hkingsbury 13 April 2022, 23:02

View original

3 replies

Userlevel 6
Badge +32

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

 

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."

Userlevel 5
Badge +29

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

Reply