Skip to main content
One question.

 

 

How can I make sure that a workspace only runs if it has an ArcInfo license available? That is - I want to check out the license before running the workspace (For instance in the python-script) ?

 

 

Not sure if this approach GUARANTEES that the license will not be used by someone else between the startup script and after a long processing (1 hour) starting the writer?

 

 

Related:

 

http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000cgTFAAY

 

 

Hi Sigbjørn,

 

 

have you looked at this?

 

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000

 

 

Here is another way to check out a specific ArcGIS license:

 

 

try:

 

    import arcinfo

 

except:

 

    print "No ArcInfo license available"

 

 

Note that you will have to use the Python interpreter that was installed with ArcGIS for this to work, it will normally be something like C:\\Windows\\SysWOW64\\python26.dll if you're on a 64-bit OS.

 

 

David
Thanks. Unfortunately it seems to request another Python-interpreter as mentioned by you. And changing the interpreter on Desktop and Server is not a good solution for the moment.

 

 

Your short script

 

try:

 

    import arcinfo

 

    print "ArcInfo license available"

 

except:

 

    print "No ArcInfo license available"

 

 

does not fail - but does not print anything either (I guess it also needs the Arcgis python-interpreter.)

Reply