Question

FME 2016 / Anaconda : How to use custom python interpreter without windows env. variables

  • 8 November 2017
  • 2 replies
  • 8 views

Badge

Hi !

 

 

When using several python installations on the same server, they usually don't use windows python path environment variables. How ever, FME cannot start the python module without these (error messages about not being able to find libraries, as you can imagine)

 

 

Is there a good way to define unique environment variables (python home, python path) for fme in a config file ?

2 replies

Badge

It sounds like you want to configure your Python path differently based on your interpreter. If you can't avoid it, you can accomplish this by modifying the Python path programmatically, at run time. You can modify 

sys.path
 in your Python code, which takes effect immediately.
Badge +10

There's been some recent (2017) changes to best practice with Python, in particular around workspace specific parameters that it may help you to see. This discussion thread was here.

Hope that helps, Dave

Reply