4

Is it possible to set the "Always run in foreground" option within ArcPy code? I haven't found anything on this yet?

It would be nice to be able to specify within a script, instead of through the Geoprocessing Options window.

1 Answer 1

7

This can be done in ArcPy when you are Defining a tool in a Python toolbox by using the canRunInBackground property:

If canRunInBackground is unset or set to True, the tool will respect the current Background Processing setting in the Geoprocessing Options dialog.

If set to False, the tool will always run in the foreground, overriding the Background Processing setting in the Geoprocessing Options dialog.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.