Import arcpy modules into Jython

388
0
03-08-2013 07:09 AM
MichelleBoivin
Occasional Contributor
I have a 3rd party scheduling application that my company bought and would like me to try to use for my Python scripts, SQL tasks, jobs, etc. It appears to be Java based and although they claim it can run Python scripts, they based it off of Jython. I downloaded the Jython module, but cannot figure out how to import the arcpy module along with a few others for logging. Has anyone done this and/or can anyone provide some guidance?

Thank you,
Michelle

Modules importing:
from __future__ import absolute_import
import arcpy, arcgisscripting, smtplib, sys, os, traceback, time, datetime, logging, logging.handlers, win32api, win32com.client
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Utils import COMMASPACE, formatdate
from email import Encoders
from time import strftime
Tags (2)
0 Replies