I think the only way to do this would be to shell out to lmutil/rlmutil to 
query the license server and then parse the output, which we do to display 
license information in a GUI. I’ve submitted a feature request to have the nuke 
module raise an exception rather than abort the process if a license cannot be 
checked out, and I’ll reply again once I have a feature ID.

-Nathan



From: Timm Wagener 
Sent: Tuesday, December 30, 2014 2:02 PM
To: [email protected] 
Subject: [Nuke-python] [Nuke8.05] Querying available render licenses frompython

Hello guys, 

i'd like to ask if it is possible from within the nuke python packages to query 
the license server for the currently available render licenses?

Research in the interwebs told me that this doesnt seem to be possible yet! 
  The big issue that I can’t seem to get around is that import nuke will exit 
python if there aren’t any available Nuke render licenses. This exit doesn’t 
call a SystemExit exception, and isn’t any of the __builtin__ exit calls or the 
os._exit and thread.exit calls. Depending on the license server configuration, 
one should be able to query the server to see if there are licenses, and only 
continue if one is available.

Is this still the case or are there any hidden tricks/best practices how to 
query if a license is available? If not through python, maybe through the NDK?

Thanks and a happy new year everybody :D
Timm

-- 

Timm Wagener
Technical Artist / 3D Generalist

www.timmwagener.com

Email:
[email protected]

Phone:
0178-2810920




--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to