Question

How to set up a script for Python Caller

  • 19 December 2021
  • 6 replies
  • 21 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

Userlevel 5
Badge +29

Have a look here :)

https://community.safe.com/s/article/pythoncaller-transformer

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

Userlevel 2
Badge +17

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.

Hi Takashi

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

Thanks

Hi Takashi (or anybody else)

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

Thanks

Userlevel 2
Badge +17

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

Reply