Skip to main content
Question

Identify which Operating System is being used?

  • December 17, 2015
  • 4 replies
  • 24 views

Forum|alt.badge.img

Is it possible to test (from within FME) which operating system an FME workspace is running on?

4 replies

takashi
Supporter
  • December 17, 2015

Python has these properties or method.

See the links. One of them might help you.


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • December 17, 2015

I thought we had a published parameter for this, but I guess not. If you want to distinguish between Windows and Linux the best I can offer is the FME_MF_DIR parameter - if it starts with "C:\\" then you can be fairly certain it's a Windows platform.


bo
Contributor
Forum|alt.badge.img+10
  • Contributor
  • January 2, 2024

The FME_OS parameter now may be what you need to use -

FME_OS Returns the operating system on which FME is running - Windows, macOS, or Linux.


bobw
Contributor
Forum|alt.badge.img+5
  • Contributor
  • August 2, 2024
Use FME_OS with AttributeCreator

The ks_rootpath attribute can be used in the file path of readers and writers, making the workspace OS independent.  That is, you can run the same workspace on any platform without modifying paths.

e.g.  @Value(ks_rootpath)/Projects/GIS_TaskRequest/@Value(ProjectNam)/summary.txt


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings