Jean-Luc Arnaud on Fri, 20 Sep 2024 16:15:54 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: How to determine if Windows or Mac OS


Replying to myself.

I found that these default variables datadir, help and path may contain specific characters like @ or "\" for Windows, "/" for Unix systems (including Mac OS).
Is there another way?

Thanks to all replyers.

Le 20/09/2024 à 14:11, Jean-Luc Arnaud a écrit :
Hi all,

I'm writing GP scripts to be used on Windows or Mac OS.

Is it possible (and how) to know if the script runs on Windows or Mac OS?

It's needed in particular for files and folders paths.

TIA

Jean-Luc