If you have a custom python module you need to use on FME Server that is not part of the Python standard library, use the Upload tool on the Resources page of the FME Server Web User Interface, and upload it to the folder under Engine\Plugins\python that corresponds to the Python release compatible with the module (for example, python27).
Importing Python Packages
If you want to import a Python package, rather than a stand-alone module, follow this procedure:
- Install the package to FME Desktop. For more information, see Installing Python Packages to FME Desktop.
- From the install location, locate the sub-directory that contains the init.pyc and main.pyc files of your package.
- Use the Upload tool on the Resources page of the FME Server Web User Interface, as described above, and upload the directory containing the corresponding .pyc files of the package.
For more information, see Uploading Python Modules to FME Server in the FME Server documentation.