Solved

Identify fme desktop session's os


Badge +2

We have the need to determine OS on which FME destop session is running, such as Windows or Linux/Mac.

For lack of an elegant solution, we get the application path from FME_HOME / FME_HOME_UNIX to make the "assumption". I would appreciate if someone can share better alternatives.

icon

Best answer by takashi 20 June 2016, 03:05

View original

3 replies

Userlevel 2
Badge +17

Hi @bo, Python platform.system() method may be helpful.

>>> import platform
>>> print (platform.system())
Windows

See also here: Python Documentation > 15.15. platform

Userlevel 2
Badge +17

Hi @bo, Python platform.system() method may be helpful.

>>> import platform
>>> print (platform.system())
Windows

See also here: Python Documentation > 15.15. platform

There is a similar Q&A;: Identify which Operating System is being used?

Badge +2

Thanks, @takashi. I have implemented your solution in my workspace!

I have also made a suggestion on creating a system parameter for OS platform.

https://knowledge.safe.com/content/idea/30007/syst...

Reply