Hi all,
I have two environments of FME Server: dev and prod. Based on the hostname, I want to set several parameters:
- FME Server connection for notification
- Email addresses are different
- ...
I do this with very simple Python scripts like:
_hostname = FME_MacroValues['FME_SERVER_HOST']
if _hostname == 'XXXXXXXXXXX':
FME_Connection = 'fmeserver_prod'
else:
FME_Connection = 'fmeserver_dev'
return FME_Connection
This works well on FME Server, but I cannot run this Workspace any more on Desktop. When filling in a value for FME_SERVER_HOST on Desktop, Python does not seem to be able to get to the FME_MacroValues. Anyone some advice on how to solve this?
Best answer by takashi
View original