Quiero ejecutar un ModelBuilder desde un python script. El ModelBuilder necesita dos argumentos. El nombre del modelo es m1 y el alias mytools.
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# man2.py
# Created on: 2017-11-17 09:06:23.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("L:/EPEL/Opérations/MAJ/BgrSigeqRol/4_CompleterTrx/Procedure/Tache9a/AdressesQuébecProductionV3.tbx")
# Local variables:
cf = "C:\\temp\\\database.MDB\\keyfinal"
TEMPO = "C:\\temp\\\database.MDB\\TEMPO"
arcpy.gp.toolbox = "C:\\temp\\\database.MDB\\tool.tbx";
arcpy.gp.m1_mytools(cf, TEMPO)