Detecting OS

A forum dedicated to George scripting questions
Post Reply
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Detecting OS

Post by Mads Juul »

Is there a function to detect what the OS is. I have to make my filesystem george commands behave differently whether it is Linux,Windows or Mac
-Mads
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Detecting OS

Post by Hervé »

madsjuul wrote:Is there a function to detect what the OS is. I have to make my filesystem george commands behave differently whether it is Linux,Windows or Mac
-Mads
Humm, no, but with tv_gethostpath if you find ":" it's windows...

I will add a new parameter int tv_version ["ComputerOS"|"ComputerName"|"UserName"|"ComputerLanguage"]
Hervé ADAM, TVPaint Team
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Detecting OS

Post by Mads Juul »

Thank you :-)
Post Reply