Package Workspace (Environment setting)

The Package Workspace environment setting is the location of a folder that locates the contents of a shared geoprocessing package or service.

When a geoprocessing result is shared as either a geoprocessing package or service, all tools, scripts, datasets, and so on, are consolidated into a single folder. During consolidation, the tool being shared is updated with the Package Workspace environment to ensure all tools, scripts, datasets, and so on, can be located when the shared task is run again. Therefore, while running again, the Package Workspace environment is set to the local folder that contains all needed elements to ensure that the task can be completed successfully.

Usage notes

  • When executing a task, the Package Workspace environment is guaranteed to exist.
  • The Package Workspace environment is read-only; you cannot set the location directly.
  • Each time a shared task is executed, the Package Workspace environment is reset to the v101 folder for that task.

Dialog syntax

Note:

The Package Workspace environment is read-only and cannot be set manually.

Scripting syntax

arcpy.env.packageWorkspace