Kristya

Publish and Package map to PMF using Python

Discussion created by Kristya on Apr 1, 2011
Is there a way to do this?

####################

try:
    # 9.2 and beyond
    import arcgisscripting, collections, arcpy, sys, os
    gp = arcgisscripting.create()
except:
    # 9.1 and before
    import win32com.client, collections, arcpy, sys, os
    gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")

# Set version
gp.SetProduct("ArcEditor")

# Set the workspace
gp.workspace = ("M:\")

# Publish map to PMF
gp.blankblankblankblank

# Package PMF
gp.blankblankblankblank

Outcomes