Publish and Package map to PMF using Python

220
0
04-01-2011 12:09 PM
KristinaGrace
New Contributor II
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
Tags (2)
0 Kudos
0 Replies