Skip to main content
Question

How to set up a script for Python Caller

  • December 19, 2021
  • 6 replies
  • 236 views

In old version we just put the scripts in C:\\apps\\FME\\Python if we need to get them in Python Caller.

How do we do it in the new versions

Thanks

6 replies

hkingsbury
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • December 19, 2021

  • Author
  • February 3, 2022

Sorry for the delay.

In previous version we could use a python script that is stored on disk and not within the Python caller.

We just needed to put the script in some location so the caller will find it.

It is easier for us to manage the scripts this way.

Is it possible in the newest version - I could not find it in the doc's.

Thanks


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • February 3, 2022

Hi @modybuch​ , I think this folder is what you are looking for. Replace {username} with actual Windows user name.

C:\\Users\\{username}\\Documents\\FME\\Plugins\\Python

The Python interpreter bundled in FME considers this folder as the root directory for external Python modules by default.


  • Author
  • February 9, 2022

Hi Takashi

Where do I put the files if the server is running under Local System?

Thanks


  • Author
  • April 6, 2022

Hi Takashi (or anybody else)

Is there a way to do it or you must run the server under a "real" user?

Thanks


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • April 6, 2022
modybuch wrote:

Hi Takashi (or anybody else)

Is there a way to do it or you must run the server under a "real" user?

Thanks

If you run the workspace with FME Server, save your Python script into this resource folder, through FME Server Web Interface.

Resources > Engine > Plugins > Python


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