Skip to main content
Solved

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


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

View original
Did this help you find an answer to your question?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

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
  • April 13, 2022
nielsgerrits wrote:

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+53
  • Celebrity
  • 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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings